Skip to content

Commit 77beaa2

Browse files
authored
Merge pull request #48311 from daledah/fix/47358
fix: take photo option is missing for uploading a profile avatar image
2 parents 892041a + 1860f56 commit 77beaa2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/AttachmentPicker/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, {useRef} from 'react';
22
import type {ValueOf} from 'type-fest';
3+
import * as Browser from '@libs/Browser';
34
import Visibility from '@libs/Visibility';
45
import CONST from '@src/CONST';
56
import type AttachmentPickerProps from './types';
@@ -8,7 +9,7 @@ import type AttachmentPickerProps from './types';
89
* Returns acceptable FileTypes based on ATTACHMENT_PICKER_TYPE
910
*/
1011
function getAcceptableFileTypes(type: string): string | undefined {
11-
if (type !== CONST.ATTACHMENT_PICKER_TYPE.IMAGE) {
12+
if (type !== CONST.ATTACHMENT_PICKER_TYPE.IMAGE || Browser.isMobileChrome()) {
1213
return;
1314
}
1415

0 commit comments

Comments
 (0)