• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File Uploading - Allowed types

#1
[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?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.