From 18faa41f1c5bb2167f9e9c80ff7487565931b9f9 Mon Sep 17 00:00:00 2001 From: Heshan Wanigasooriya Date: Thu, 4 Jun 2009 19:59:01 +0000 Subject: #410024#comment-1660960 by psaleks : Default video validations. --- types/video_upload/video_upload.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3