Skip to content

Commit

Permalink
Add video mime type support for file inputs (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreeaid authored Apr 18, 2024
1 parent 77be031 commit f304481
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/FileInput/FileInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ const MIME_TYPES = {
png: '.png,image/png',
jpeg: '.jpeg,image/jpeg',
jpg: '.jpg,image/jpg',
images: 'image/*',
images: 'image/*, video/*',
pdf: '.pdf,application/pdf',
mp4: '.mp4,video/mp4',
}

type AllowedMimeTypes = keyof typeof MIME_TYPES
Expand Down

0 comments on commit f304481

Please sign in to comment.