Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
upload wmv file with upload class
  • 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?

    thanks
  • What exactly doesn't work?

    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.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion