aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeshan Wanigasooriya <heshanmw@gmail.com>2009-06-04 19:59:01 +0000
committerHeshan Wanigasooriya <heshanmw@gmail.com>2009-06-04 19:59:01 +0000
commit18faa41f1c5bb2167f9e9c80ff7487565931b9f9 (patch)
tree3add65acc31320f88d0e675ba333cabe3604c47d
parent0179e027e185ad1c33d21062db1d09e561b96e39 (diff)
downloadvideo-18faa41f1c5bb2167f9e9c80ff7487565931b9f9.tar.gz
video-18faa41f1c5bb2167f9e9c80ff7487565931b9f9.tar.bz2
#410024#comment-1660960 by psaleks : Default video validations.
-rw-r--r--types/video_upload/video_upload.module2
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);