Skip to content

fix: show unsupported-file ingest warning and overwrite for for folder duplicates#1258

Merged
Wallgau merged 4 commits into
release-0.4.0from
file-not-supported-in-folder-error
Mar 25, 2026
Merged

fix: show unsupported-file ingest warning and overwrite for for folder duplicates#1258
Wallgau merged 4 commits into
release-0.4.0from
file-not-supported-in-folder-error

Conversation

@Wallgau

@Wallgau Wallgau commented Mar 25, 2026

Copy link
Copy Markdown
Collaborator

issue: #1139
Summary
Fix folder upload UX by detecting unsupported files and showing a clear error toast with ingest counts.
Reuse overwrite handling for folder duplicates so users can choose to overwrite duplicates or skip duplicates and continue.
Improve duplicate dialog copy for single vs multiple duplicates, and keep action buttons readable/aligned.
Test Plan
Upload a folder with mixed supported/unsupported files and confirm toast shows “only X of Y will be ingested”.
Upload a folder with duplicates and choose Overwrite duplicates; verify duplicates are replaced.
Upload a folder with duplicates and choose Skip duplicates & continue; verify non-duplicates still ingest.

Before the user won't receive any info about the unsupported files in the folder, will just be ignore and the user wasn't able to overwrite duplicate in folder:
here in this example 2 duplicates (just skipped by default) and only 7 ingested which makes it 9files acknowledge over the 12 files in the folder, 3 of them are not supported type files:

Screen.Recording.2026-03-25.at.11.46.28.AM.mov

Now, the user get info about unsupported files and the ability to overwrite the duplicates files:
https://github.com/user-attachments/assets/a243c601-1666-4922-8533-4fd6f76d09bb

@github-actions github-actions Bot added bug 🔴 Something isn't working. frontend 🟨 Issues related to the UI/UX and removed bug 🔴 Something isn't working. labels Mar 25, 2026
@Wallgau Wallgau requested review from lucaseduoli and mpawlow March 25, 2026 15:39
@github-actions github-actions Bot added bug 🔴 Something isn't working. and removed bug 🔴 Something isn't working. labels Mar 25, 2026
try {
const result = await uploadFiles(batch, replace);
addTask(result.taskId);
console.log(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cleanup the logs

const [s3Configured, setS3Configured] = useState(false);
const [pendingFile, setPendingFile] = useState<File | null>(null);
const [duplicateFilename, setDuplicateFilename] = useState<string>("");
const [duplicateCountForDialog, setDuplicateCountForDialog] = useState<

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pendingFolderUpload already has the duplicate count why do we need this?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch

Comment on lines +382 to +384
setPendingFolderUpload(null);
setDuplicateFilename("");
setDuplicateCountForDialog(undefined);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This reset block is used a couple times could make it reusable

…og reset

- Pass duplicate dialog count from pendingFolderUpload instead of mirroring state
- Add resetDuplicateDialogState() for shared cleanup of pending upload state

Made-with: Cursor
@github-actions github-actions Bot added bug 🔴 Something isn't working. and removed bug 🔴 Something isn't working. labels Mar 25, 2026
@Wallgau Wallgau requested a review from mfortman11 March 25, 2026 16:26

@mfortman11 mfortman11 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions github-actions Bot added the lgtm label Mar 25, 2026
@github-actions github-actions Bot added bug 🔴 Something isn't working. and removed bug 🔴 Something isn't working. labels Mar 25, 2026

@lucaseduoli lucaseduoli left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@Wallgau Wallgau merged commit 285e30d into release-0.4.0 Mar 25, 2026
7 checks passed
@github-actions github-actions Bot deleted the file-not-supported-in-folder-error branch March 25, 2026 16:51
@mpawlow mpawlow removed their request for review March 26, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug 🔴 Something isn't working. frontend 🟨 Issues related to the UI/UX lgtm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants