Welcome Guest, Not a member yet? Register   Sign In
mp4 video file won't upload?
#1

[eluser]newbie boy[/eluser]
since like i had set-up all necessary things needed to upload an mp4 video file... like...

for the mimes.php in the configuration, i added this...

Code:
'mp4'   =>  'video/mp4'

for the .htaccess, i put this...

Code:
AddType video/mp4 .mp4

on my upload controller i got this...

Code:
$config['allowed_types']     = 'mp4';

but still everytime i upload a mp4 video file, this is still the error...

Quote:The file type you are attempting to upload is not allowed.

appreciate the help guys...

thanks...
#2

[eluser]rogierb[/eluser]
double check the mimetypes, like jpg I assume there is more then one mime depending on content. (audio, video, application). Check what mimetype the file is you try to upload.
#3

[eluser]newbie boy[/eluser]
ofcourse i'm uploading an mp4 video file...

anyone else?
#4

[eluser]InsiteFX[/eluser]
Hi,

Check the mime types on your web server it may not support it.

Enjoy
InsiteFX
#5

[eluser]newbie boy[/eluser]
how?
#6

[eluser]vitoco[/eluser]
i was getting a similar error, cause de server ( i think... ) added '\"' or '"' to the filetype , so i did this

Code:
$_FILES['user_file']['type'] = str_replace('\"' , '' , $_FILES['user_file']['type'] );

    $_FILES['user_file']['type'] = str_replace('"' , '' , $_FILES['user_file']['type'] );

not elegant...but it works

-----------

Also before that you must check your mime types in

Code:
application/config/mimes.php




Theme © iAndrew 2016 - Forum software by © MyBB