mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-22 14:38:11 +02:00
fix(client): improve iOS video upload compatibility (MIME types, size limit)
This commit is contained in:
1 parent
8b1f114383
commit
19aa3d5b97
1 file changed
+6
-2
@@ -213,9 +213,13 @@ export default function NewReel() {
|
|||||||
const { getRootProps, getInputProps, isDragActive, open } = useDropzone({
|
const { getRootProps, getInputProps, isDragActive, open } = useDropzone({
|
||||||
onDrop,
|
onDrop,
|
||||||
accept: {
|
accept: {
|
||||||
"video/*": [".mp4", ".mov", ".webm", ".3gp", ".3gpp", ".mkv", ".avi"],
|
'video/mp4': ['.mp4', '.m4v'],
|
||||||
|
'video/quicktime': ['.mov', '.qt'],
|
||||||
|
'video/webm': ['.webm'],
|
||||||
|
'video/x-msvideo': ['.avi'],
|
||||||
|
'video/*': [], // Fallback
|
||||||
},
|
},
|
||||||
maxSize: 52428800,
|
maxSize: 500 * 1024 * 1024, // 500MB pour supporter les vidéos 4K
|
||||||
noClick: true,
|
noClick: true,
|
||||||
noKeyboard: true,
|
noKeyboard: true,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user