Closed (fixed)
Project:
Flash Node
Version:
5.x-3.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Sep 2007 at 23:01 UTC
Updated:
6 Jul 2008 at 22:39 UTC
When I try to upload an MP3, I get the following error:
"You must specify a Flash file to upload"
INTERESTING: It appears that I'm only getting the error when using mac (firefox and safari). When I switch to a windows machine running ie7, it uploaded just fine.
Here's the code that generates it...
// Check if file is empty
if (empty($form['flashfile']['#value']) && empty($form['flashnode']['_flashnode']['#value'])) {
form_set_error('flashfile', t('You must specify a Flash file to upload'));
}
Why are my form variables coming in blank?
Comments
Comment #1
berryb commentedI'm getting the same error when uploading an FLV: "You must specify a Flash file to upload."
Comment #2
Stuart Greenfield commentedI think this is a duplicate of this one. I'm snowed under with my two regular jobs (work + baby!) so I'm struggling to get round to investigating and fixing, but I'll get on to it as soon as I can.
It is possible to disable the file check, I am wondering if different browsers are reporting different mime types on upload. It sounds like the error occurs on non-Windows machines. If I get a chance soon I'll try to write a debug version to get some feedback.
Please bear with me!
Comment #3
ycg commentedPHP by default only allow uploads of 2MB, if your flv file is bigger then flashnode get that error message... try modifying the php.ini to allow biger files...
Comment #4
UnicornSong commentedI get this error. I have already upped the limit to 40M as i was having errors logged regarding another issue. Now I get the "You must specify a flash file to upload" error when i try to upload my flv file (10,907 kb). No errors are being logged in php_errors.log any more.
Comment #5
UnicornSong commentedah, needed to change two settings...