I need to upload a video file with the upload class, my code is working perfectly with jpg, pdf or mov file but it does'nt work with a wmv file... I add the following line to config/mime.php file:
'wmv' =>'video/x-ms-wmv'... but it still does'nt work.
did someone have the same problem? can someone help me?
The mime type is not relevant unless you validate on it. So start by disabling all validations. If you dump the file array, you'll see what mime type your server thinks the file is...
it looks like I misunderstood the problem, I have the same problem with a .mov file, after a certain size (about 15 Mo) my video is not upload. I didn't change max_size attribute so it is set to 0 as default. do you have an idea where the error come from?
I don't know what the error is, because you haven't told me.
Get the errors from the upload class, it will tell you exactly what the problem is. It could very well be that the post size is limited in your php.ini, so PHP itself refuses to process it.