From cfa4dd64531fecf17a563ed166b6da92fc45511b Mon Sep 17 00:00:00 2001 From: Aram <37216945+alimpens@users.noreply.github.com> Date: Tue, 3 Dec 2024 10:10:21 +0100 Subject: [PATCH] [fix-6315]: Add capture=camera to file input accept (#3036) --- src/components/FileInput/FileInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/FileInput/FileInput.tsx b/src/components/FileInput/FileInput.tsx index d818df1b9d..5972ddb985 100644 --- a/src/components/FileInput/FileInput.tsx +++ b/src/components/FileInput/FileInput.tsx @@ -134,7 +134,7 @@ const FileInput: FunctionComponent = ({ type="file" id="fileUpload" data-testid="file-input-upload" - accept={allowedFileTypes.join(',')} + accept={`${allowedFileTypes.join(',')};capture=camera`} onChange={addFiles} name={name} multiple