CodeIgniter Forums
File Uploading - Allowed types - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: File Uploading - Allowed types (/showthread.php?tid=30014)



File Uploading - Allowed types - El Forum - 04-29-2010

[eluser]wakey[/eluser]
Hi,

I'm in the process of testing an application that I have built with a few users. There is a document upload section which should only allow certain types of files -

Code:
// Upload configuration
                    $config['upload_path'] = './uploads/';
                    $config['allowed_types'] = 'doc|docx|docm|dotx|dotm|xlsx|xlsm|xltx|xltm|xlsb|xlam|pptx|pptm|potx|potm|ppam|ppsx|ppsm|pdf';
                    $config['max_size']    = '1000';
                    $config['encrypt_name'] = TRUE;

I have noticed that other files are getting through. Some .mx4 files have been uploaded and I can upload my iTunes Library files. Other files are blocked such as swf, html, php etc.

Any ideas why it is allowing a few random files?