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:


And add the following value to the $mime array.

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

About Rick

Senior Front-end Software Engineer from Barcelona, Haidong Gumdo Instructor (korean martial art of the sword), street photographer, travel lover, TV addict, Boston Red Sox fan, and privacy advocate.

Leave a Reply

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