Skip to content

Commit

Permalink
misc: added file filter to improve selecting files for upload
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtenorio committed Jan 4, 2025
1 parent dfc8b9c commit 701ce44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/routes/_app/upload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ function UploadPage() {
for (let i = 0; i < Object.keys(selection).length; i++) {
const key: number = parseInt(Object.keys(selection)[i]);
// TODO type is wonky
// don't add to upload list if we are using filter and
// the file include the filter as a substring
if(filterActive && !uploads[key].filepath.includes((filter[0] as any).value)) {
continue;
}
Expand Down

0 comments on commit 701ce44

Please sign in to comment.