Skip to content

Commit

Permalink
[fix-6315]: Add capture=camera to file input accept (#3036)
Browse files Browse the repository at this point in the history
  • Loading branch information
alimpens authored Dec 3, 2024
1 parent 572f207 commit cfa4dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/FileInput/FileInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const FileInput: FunctionComponent<FileInputProps> = ({
type="file"
id="fileUpload"
data-testid="file-input-upload"
accept={allowedFileTypes.join(',')}
accept={`${allowedFileTypes.join(',')};capture=camera`}
onChange={addFiles}
name={name}
multiple
Expand Down

0 comments on commit cfa4dd6

Please sign in to comment.