How to Upload mp4 – CodeIgniter mime type

If you want to upload a file with CodeIgniter you should read my old post about it first.

Config Arguments

So, if you want to be able to upload mp4 files you have to tweak it a little bit.

When you setup the config arguments, add the allowed type and the max size.

Add the mime type mp4 to CodeIgniter

Go to:

/application/config/mimes.php

And add the following value to the $mime array.

Now you should be able to upload a mp4 video through a form input 😉

8 comments

Leave a Reply

Add <code> Some Code </code> by using this tags.

*
*