Welcome Guest, Not a member yet? Register   Sign In
Can't upload an m4v

[eluser]Kyle Ellman[/eluser]
I'm using the file upload library to upload movie files. I can do just about any file type, but can't seem to get an m4v to work. I even set the only allowed upload type to m4v, and the upload error still says that the chosen file is not allowed.

I'm really confused. Any help out there?

Have you done some var_dumps to see what the mime type of that file shows up as, and then make sure that mime type is in your config file?

[eluser]Kyle Ellman[/eluser]
Which config file? I know which filetypes I'm allowing...

'm4v' => 'video/x-m4v',

.htaccess file
AddType video/x-m4v m4v
AddType audio/x-m4a m4a
AddType video/mp4 mp4


[eluser]Kyle Ellman[/eluser]
Thanks. That fixed it.

Theme © iAndrew 2016 - Forum software by © MyBB