Quotes in mime type when uploading |
[eluser]Michael DOUBEZ[/eluser]
I can but it will not help a lot, it is an empty file with .bin extension. The same happens with a real binary file which is encrypted (and thus unrecognizable with magic pattern). As I have mentioned in the but report, I have not had this behavior at first until I tried to get it back (with a force_download). FF3 proposed me to open it with IZarcBin but I simply save it. From that point on, I could no longer upload a file. However, it is not necessarily a CodeIgniter issue (the same works in IE). But since the quotes are not striped, the mime type is not matched and I don't know what the standard(RFC?) says about the format of mime-type in $_FILES[]['type']. Here is the ethereal dump of the transaction (i could not attach it): POST /index.php/test/index HTTP/1.1 Host: michael.doubez.free.fr User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://michael.doubez.free.fr/index.php/test/index Cookie: __utma=172764660.2276437954795728600.1212670172.1212670172.1212670172.1; __utmz=172764660.1212670172.1.1.utmcsr=adsl.free.fr|utmccn=(referral)|utmcmd=referral|utmcct=/compte/console.pl Content-Type: multipart/form-data; boundary=---------------------------162821245525734 Content-Length: 313 -----------------------------162821245525734 Content-Disposition: form-data; name="testfile"; filename="test.bin" Content-Type: "application/octet-stream" -----------------------------162821245525734 Content-Disposition: form-data; nam e="upload" Upload -----------------------------162821245525734-- HTTP/1.1 200 OK Date: Thu, 24 Jul 2008 07:19:59 GMT Server: Apache/ProXad [May 5 2008 17:44:06] X-Powered-By: PHP/5.1.3RC4-dev Connection: close Content-Type: text/html <html> <body> <h1>File upload</h1><BIG>Uploading failed</BIG><br /><p>The filetype you are attempting to upload is not allowed.</p><ol> <li>test.bin</li> <li>\"application/octet-stream\"</li> <li>/mnt/138/sda/d/1/michael.doubez/upload/</li> <li>/mnt/138/sda/d/1/michael.doubez/upload/test.bin</li> <li>test</li> <li></li> <li>.bin</li> <li>0</li> <li></li> <li></li> <li></li> <li></li> <li></li> </ol> <big><b>Test files</b></big><br /><form action="http://michael.doubez.free.fr/index.php/test/index" method="post" enctype="multipart/form-data">Upload a new firmware: <input type="file" name="testfile" value="" maxlength="500" size="20"> <input type="hidden" name="upload" value="Upload" /></form> <br /> |
Messages In This Thread |
Quotes in mime type when uploading - by El Forum - 07-23-2008, 07:52 AM
Quotes in mime type when uploading - by El Forum - 07-23-2008, 08:07 PM
Quotes in mime type when uploading - by El Forum - 07-24-2008, 01:14 AM
Quotes in mime type when uploading - by El Forum - 07-24-2008, 05:42 AM
Quotes in mime type when uploading - by El Forum - 07-24-2008, 06:10 AM
Quotes in mime type when uploading - by El Forum - 07-24-2008, 06:12 AM
Quotes in mime type when uploading - by El Forum - 03-27-2009, 02:30 AM
Quotes in mime type when uploading - by El Forum - 03-27-2009, 02:57 AM
Quotes in mime type when uploading - by El Forum - 05-20-2009, 02:50 PM
Quotes in mime type when uploading - by El Forum - 07-27-2009, 09:46 AM
Quotes in mime type when uploading - by El Forum - 04-12-2010, 12:01 PM
|