fix can't upload mp4 on safari (#1617)
This commit is contained in:
parent
6bae1f1a89
commit
c88afc5aae
|
@ -78,6 +78,11 @@ export const FileUpload = forwardRef(({ children, className, onSelect, onUpload,
|
||||||
|
|
||||||
element.onerror = reject
|
element.onerror = reject
|
||||||
element.src = window.URL.createObjectURL(file)
|
element.src = window.URL.createObjectURL(file)
|
||||||
|
|
||||||
|
// iOS Force the video to load metadata
|
||||||
|
if (element.tagName === 'VIDEO') {
|
||||||
|
element.load()
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}, [toaster, getSignedPOST])
|
}, [toaster, getSignedPOST])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue