Welcome Guest, Not a member yet? Register   Sign In
file uploader class issues
#7

[eluser]llbbl[/eluser]
Yea ok. I don't think your following. It has nothing to do with cross browser problems.

Validating the MIME type of documents for security reasons is not a secure way to check the files that have been uploaded. With a perl script you can send the correct MIME type for a image/gif, then some binary data, then a phpinfo(), then some more binary data.

The best/easiest/secure way to do file uploads is do a file extension check and upload to a folder/subdomain where with a .htaccess and the following.

Code:
RemoveType application/x-httpd-php php
AddType text/html php

or something similar. this may not work for php running as cgi.


Messages In This Thread
file uploader class issues - by El Forum - 08-19-2008, 04:58 PM
file uploader class issues - by El Forum - 08-19-2008, 05:21 PM
file uploader class issues - by El Forum - 08-19-2008, 05:28 PM
file uploader class issues - by El Forum - 08-19-2008, 05:42 PM
file uploader class issues - by El Forum - 08-19-2008, 06:11 PM
file uploader class issues - by El Forum - 08-19-2008, 06:50 PM
file uploader class issues - by El Forum - 08-19-2008, 07:29 PM
file uploader class issues - by El Forum - 08-19-2008, 07:51 PM
file uploader class issues - by El Forum - 08-20-2008, 11:02 AM
file uploader class issues - by El Forum - 08-20-2008, 11:23 AM
file uploader class issues - by El Forum - 08-20-2008, 11:57 AM
file uploader class issues - by El Forum - 08-20-2008, 12:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB