diff --git a/src/Extensions/SlideImageEx.php b/src/Extensions/SlideImageEx.php index 5367165..0df9b1b 100755 --- a/src/Extensions/SlideImageEx.php +++ b/src/Extensions/SlideImageEx.php @@ -116,7 +116,10 @@ class SlideImageEx extends DataExtension ->setAllowedExtensions(['mp4']) ->setFolderName('Uploads/SlideVideos'); - $maxFileSize = $videoUpload->getValidator()->getAllowedMaxFileSize('mp4'); + $validator = $videoUpload->getValidator(); + $validator->setAllowedMaxFileSize(['mp4' => 300000000]); + + $maxFileSize = $validator->getAllowedMaxFileSize('mp4'); $videoUpload->setTitle('Video File (max size: '.self::formatBytes($maxFileSize).')'); $fields->insertAfter('Headline', $videoUpload);