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

berryb’s picture

I'm getting the same error when uploading an FLV: "You must specify a Flash file to upload."

Stuart Greenfield’s picture

Status: Active » Closed (duplicate)

I 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!

ycg’s picture

PHP 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...

UnicornSong’s picture

Status: Closed (duplicate) » Active

I 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.

UnicornSong’s picture

Status: Active » Closed (fixed)

ah, needed to change two settings...