Allow upload of videos

This commit is contained in:
2019-06-28 22:17:46 +02:00
parent 3a82aa90aa
commit b691a32f76
10 changed files with 140 additions and 51 deletions

View File

@@ -15,7 +15,7 @@ class Uploader extends UploadHandler
$this->error_messages['wrong_project_mode'] = 'Le projet n\'est pas en mode "blog".';
$this->oPicture = &$oPicture;
$this->sBody = '';
parent::__construct(array('image_versions'=>array(), 'accept_file_types'=>'/\.(gif|jpe?g|png)$/i'));
parent::__construct(array('image_versions'=>array(), 'accept_file_types'=>'/\.(gif|jpe?g|png|mov)$/i'));
}
protected function validate($uploaded_file, $file, $error, $index) {