Link to home
Start Free TrialLog in
Avatar of Mr_Splash
Mr_Splash

asked on

Uploading an flv, mime type in IF statement not working

I'm trying to upload an flv file, but am having some problems.

I've extended the php.ini to allow for the file sizes, so I know it's not due to that.

At the point of my script shown below, it's not going inside the IF statement.

I'm pretty sure it's to do with the MIME as the IF statement works on uploading an image (when MIME is image/jpeg)

Any ideas?

Thanks


if ($HTTP_POST_FILES['ufile']['type'][1]=="video/x-flv") {

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Warpseh
Warpseh
Flag of Argentina image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mr_Splash
Mr_Splash

ASKER

Nice one :)

It was "application/octet-stream" how bizaar