diff --git a/src/CONST.js b/src/CONST.js index 4c19965837d9..5d8e533fc543 100755 --- a/src/CONST.js +++ b/src/CONST.js @@ -787,8 +787,10 @@ const CONST = { }, FILE_TYPE_REGEX: { - IMAGE: /\.(jpg|jpeg|png|webp|avif|gif|tiff|wbmp|ico|jng|bmp|heic|svg|svg2)$/, - VIDEO: /\.(3gp|h261|h263|h264|m4s|jpgv|jpm|jpgm|mp4|mp4v|mpg4|mpeg|mpg|ogv|ogg|mov|qt|webm|flv|mkv|wmv|wav|avi|movie|f4v|avchd|mp2|mpe|mpv|m4v|swf)$/, + // Image MimeTypes allowed by iOS photos app. + IMAGE: /\.(jpg|jpeg|png|webp|gif|tiff|bmp|heic|heif)$/, + // Video MimeTypes allowed by iOS photos app. + VIDEO: /\.(mov|mp4)$/, }, IOS_CAMERAROLL_ACCESS_ERROR: 'Access to photo library was denied', ADD_PAYMENT_MENU_POSITION_Y: 226,