File Upload Class - allowed types |
[eluser]grolle[/eluser]
Hi, is it possible to allow all filetypes here? Best regards ...
[eluser]eoinmcg[/eluser]
out of the box, no. but you can quite easily extend the upload class to do so. be careful of the security implications though.
[eluser]grolle[/eluser]
Hi, yes but I have a problem for example with exe-files. It is in $config['allowed_types'] and the mime type 'exe'=>'application/octet-stream' is set, but uploading an exe file is not possible. I get this message Quote:The filetype you are attempting to upload is not allowed.. $_Files looks like: Quote:Array ( [userfile] => Array ( [name] => AdvCardListDemo.exe [type] => application/octet-stream [tmp_name] => /tmp/phpGGvbIQ [error] => 0 [size] => 1340928 ) ). Whats wrong? Best regards ..
[eluser]eoinmcg[/eluser]
i think it may be something to do with browsers sending different mimetypes. here's how to upload any file type: http://net.tutsplus.com/tutorials/php/6-...e-masters/ see point 7 |
Welcome Guest, Not a member yet? Register Sign In |