IMPR: Add video files

This commit is contained in:
Tony Air 2022-07-08 20:33:31 +02:00
parent 94c977d078
commit 40f102b309

View File

@ -116,11 +116,8 @@ class SlideImageEx extends DataExtension
->setAllowedExtensions(['mp4'])
->setFolderName('Uploads/SlideVideos');
$videoUpload->setTitle(
'Video File (max size: '
.self::formatBytes($videoUpload->getValidator()->getAllowedMaxFileSize('mp4'))
.')'
);
$maxFileSize = $videoUpload->getValidator()->getAllowedMaxFileSize('mp4');
$videoUpload->setTitle('Video File (max size: '.self::formatBytes($maxFileSize).')');
$fields->insertAfter('Headline', $videoUpload);