setFileList(fileList)}
beforeUpload={(file) => {
const isVideo = [
'video/mp4',
'video/quicktime',
'video/x-msvideo',
'video/x-matroska',
'video/webm',
'video/x-m4v',
'video/x-flv',
].includes(file.type);
if (!isVideo) {
message.error(`${file.name} is not a supported video format`);
return Upload.LIST_IGNORE;
}
const isLt10GB = file.size / 1024 / 1024 / 1024 < 10;
if (!isLt10GB) {
message.error(`${file.name} exceeds 10GB limit`);
return Upload.LIST_IGNORE;
}
return false; // Prevent auto-upload
}}
disabled={uploading}
>
Click or drag video files to this area
Supports MP4, MOV, AVI, MKV, WebM, M4V, FLV. Max 10GB per file.
{uploading && (