i'm using FilePond library in react, which works fine in chrome, but not in safari. my issue is :
when i set acceptedFileTypes={['video/*']}
- in chrome - it accepts all video types.
- in safari - it will only accept
mov
files, and not all video type files.
when i set acceptedFileTypes={['video/mp4']}
: it does the expected behaviour on both, and accepts only mp4 files.
i don't wish to set all possible video types, and would like to use the video/*
filter.
Safari version : 13.1.1
<FilePond
ref={fileRef}
files={files}
allowMultiple={false}
labelIdle={labelIdle}
className="video"
instantUpload={false}
onupdatefiles={(items) => {
setFiles(items)
}}
onremovefile={() => toggleDisplayProgress(false)}
acceptedFileTypes={['video/*']}
required
/>
i can set the video types specifically here - https://trac.webkit.org/browser/trunk/Source/WebCore/platform/MIMETypeRegistry.cpp as described in this ticket