mirror of
https://github.com/a2nt/silverstripe-elemental-basics.git
synced 2024-10-22 17:05:54 +02:00
IMPR: Add video files
This commit is contained in:
parent
94c977d078
commit
40f102b309
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user