diff --git a/components/file-upload.js b/components/file-upload.js index d674ba43..f411c25d 100644 --- a/components/file-upload.js +++ b/components/file-upload.js @@ -106,7 +106,11 @@ export const FileUpload = forwardRef(({ children, className, onSelect, onUpload, if (onSelect) await onSelect?.(file, s3Upload) else await s3Upload(file) } catch (e) { - toaster.danger(`upload of '${file.name}' failed: ` + e.message || e.toString?.()) + if (file.type === 'video/quicktime') { + toaster.danger(`upload of '${file.name}' failed: codec might not be supported, check video settings`) + } else { + toaster.danger(`upload of '${file.name}' failed: ` + e.message || e.toString?.()) + } continue } } diff --git a/lib/constants.js b/lib/constants.js index 6bc88d50..978343ea 100644 --- a/lib/constants.js +++ b/lib/constants.js @@ -27,6 +27,7 @@ export const UPLOAD_TYPES_ALLOW = [ 'image/png', 'image/jpeg', 'image/webp', + 'video/quicktime', 'video/mp4', 'video/mpeg', 'video/webm'