Webmaster Tutorials

CodeIgnite File Uploads - Allow all

CodeIgniter File Uploads – Allow all

Posted on April 10th, 2011

Unfortunately at the time of writing there is no way within the CodeIgniter framework to allow your end users to upload any file type via the CodeIgniter upload libraries. Instead you must manually specify each and every file type you’d like to accept – quite a time consuming and frustrating process if you’ve got a …

CodeIgniter File Uploads – Allow all

Posted on April 10th, 2011

Unfortunately at the time of writing there is no way within the CodeIgniter framework to allow your end users to upload any file type via the CodeIgniter upload libraries. Instead you must manually specify each and every file type you’d like to accept – quite a time consuming and frustrating process if you’ve got a large list. You may also come into some issues with the MIME type validation CodeIgniter has in place, so here’s a work around.

This brief article explains how you can allow CodeIgniter to accept any file type via its upload functionality. You’ll find the tutorial here: CodeIgniter Uploads, allow any filetype.

...