diff options
author | Heshan Wanigasooriya <heshanmw@gmail.com> | 2009-06-16 14:04:45 +0000 |
---|---|---|
committer | Heshan Wanigasooriya <heshanmw@gmail.com> | 2009-06-16 14:04:45 +0000 |
commit | b91b49fe5b06d06fbb646d3fb09dd483555a6e5f (patch) | |
tree | cd595786f0f87f24e44fcda1d6644a43455bc1e6 | |
parent | 18faa41f1c5bb2167f9e9c80ff7487565931b9f9 (diff) | |
download | video-b91b49fe5b06d06fbb646d3fb09dd483555a6e5f.tar.gz video-b91b49fe5b06d06fbb646d3fb09dd483555a6e5f.tar.bz2 |
#488616 #comment-1707148 by gatsu_1981 : Upload Video module seems designed to lose your converted video. Patch created and applied to Drupal 6 branch.
Missing video files after upload fixed!.
-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 cc6443a..e2cf6d9 100644 --- a/types/video_upload/video_upload.module +++ b/types/video_upload/video_upload.module @@ -487,7 +487,7 @@ function _video_upload_store_file(&$file, &$node) { if (file_move($file, file_directory_path())) { // file moved successfully // update the file db entry - db_query("UPDATE {files} SET filename = '%s', filepath = '%s', filemime = '%s', filesize = %d WHERE fid = %d", $file->filename, $file->filepath, $file->filemime, $file->filesize, $file->fid); + db_query("UPDATE {files} SET filename = '%s', filepath = '%s', filemime = '%s', filesize = %d, status = %d WHERE fid = %d", $file->filename, $file->filepath, $file->filemime, $file->filesize, 1, $file->fid); // add an entry in the file_revisions table db_query("INSERT INTO {video_upload} (vid, nid, fid) VALUES (%d, %d, %d)", $node->vid, $node->nid, $file->fid); // update the file db entry |