diff options
author | Heshan Wanigasooriya <heshanmw@gmail.com> | 2009-06-04 19:59:01 +0000 |
---|---|---|
committer | Heshan Wanigasooriya <heshanmw@gmail.com> | 2009-06-04 19:59:01 +0000 |
commit | 18faa41f1c5bb2167f9e9c80ff7487565931b9f9 (patch) | |
tree | 3add65acc31320f88d0e675ba333cabe3604c47d | |
parent | 0179e027e185ad1c33d21062db1d09e561b96e39 (diff) | |
download | video-18faa41f1c5bb2167f9e9c80ff7487565931b9f9.tar.gz video-18faa41f1c5bb2167f9e9c80ff7487565931b9f9.tar.bz2 |
#410024#comment-1660960 by psaleks : Default video validations.
-rw-r--r-- | types/video_upload/video_upload.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/types/video_upload/video_upload.module b/types/video_upload/video_upload.module index 9ed5310..cc6443a 100644 --- a/types/video_upload/video_upload.module +++ b/types/video_upload/video_upload.module @@ -399,7 +399,7 @@ function _video_upload_presave(&$node) { // TODO : add file size validation // 'file_validate_size' => array($limits['file_size'], $limits['user_size']), - if (count($_POST) && $file = file_save_upload($file_field , array('file_validate_extensions' => array('zip')))) { // a file has been uploaded + if (count($_POST) && $file = file_save_upload($file_field , array('file_validate_extensions' => array('mov flv wmv')))) { // a file has been uploaded $node->new_video_upload_file = $file; $node->new_video_upload_file_fid = $file->fid; //print_r($file); |