Skip to content

Commit

Permalink
Fix allowed extensions not working for file input (#8419)
Browse files Browse the repository at this point in the history
  • Loading branch information
shivankacker authored Sep 2, 2024
1 parent 6245493 commit 788e752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils/useFileUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export default function useFileUpload(
type="file"
accept={
"allowedExtensions" in options
? options.allowedExtensions?.join(",")
? options.allowedExtensions?.map((e) => "." + e).join(",")
: "allowAllExtensions" in options
? "*"
: DEFAULT_ALLOWED_EXTENSIONS.join(",")
Expand Down

0 comments on commit 788e752

Please sign in to comment.