• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem uploading PDF Files

#21
[eluser]marcello romani[/eluser]
For a reason I still don't understand, FF is now uploading the file as "application/force-download".

Quote:POST /~marcello/php/ci_doctrine_upload/index.php/upload/submit HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (X11; U; Linux i686; it; rv:1.9.1.7) Gecko/20100106 Ubuntu/9.10 (karmic) Firefox/3.5.7
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: it-it,it;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://localhost/~marcello/php/ci_doctrine_upload/index.php/upload
Cookie: ci_session=a:4:{s:10:"session_id";s:32:"75642ca75abf2e25a099a4c0fa3e3d42";s:10:"ip_address";s:7:"0.0.0.0";s:10:"user_agent";s:50:"Mozilla/5.0+(X11;+U;+Linux+i686;+it;+rv:1.9.1.7)+G";s:13:"last_activity";s:10:"1262956976";}bb9cd2413e4da9fe2d982d81c1dd00b9
Content-Type: multipart/form-data; boundary=---------------------------1040701901235425247461644255
Content-Length: 291318


-----------------------------1040701901235425247461644255
Content-Disposition: form-data; name="filename"; filename="sigmetrics09.pdf"
Content-Type: application/force-download

%PDF-1.2
%....
5 0 obj
<</Length 6 0 R/Filter /FlateDecode>>
stream
x..}[....f.>j.#............k....=.......$.DjE.CI<...?..nf..@eu.9.:..SQ]@..D...d}.d]....../.~.>.-....7.(..I....._>.....'*,........V.I..K.?...D...'.v.....>......:....`..8.tP.Z...p.(o.?|{.^......$....Q/._..{..:.x....u....:........;......xR..*..kl.R4./j+u.3.......A..7.....gp..

Therefore, adding "application/force-download" to the list of mime-types associated with "pdf" solves the problem.


Messages In This Thread
Problem uploading PDF Files - by El Forum - 01-31-2008, 02:21 AM
Problem uploading PDF Files - by El Forum - 01-31-2008, 02:33 AM
Problem uploading PDF Files - by El Forum - 01-31-2008, 02:41 AM
Problem uploading PDF Files - by El Forum - 01-31-2008, 02:56 AM
Problem uploading PDF Files - by El Forum - 01-31-2008, 02:59 AM
Problem uploading PDF Files - by El Forum - 04-10-2008, 10:41 PM
Problem uploading PDF Files - by El Forum - 05-13-2008, 11:00 AM
Problem uploading PDF Files - by El Forum - 07-15-2008, 09:53 AM
Problem uploading PDF Files - by El Forum - 08-14-2008, 10:59 PM
Problem uploading PDF Files - by El Forum - 08-21-2008, 11:29 AM
Problem uploading PDF Files - by El Forum - 04-21-2009, 08:17 AM
Problem uploading PDF Files - by El Forum - 08-11-2009, 10:40 AM
Problem uploading PDF Files - by El Forum - 10-10-2009, 08:28 PM
Problem uploading PDF Files - by El Forum - 10-10-2009, 08:33 PM
Problem uploading PDF Files - by El Forum - 10-12-2009, 01:19 PM
Problem uploading PDF Files - by El Forum - 10-12-2009, 02:08 PM
Problem uploading PDF Files - by El Forum - 11-13-2009, 05:07 PM
Problem uploading PDF Files - by El Forum - 12-09-2009, 03:32 AM
Problem uploading PDF Files - by El Forum - 01-08-2010, 06:03 AM
Problem uploading PDF Files - by El Forum - 01-08-2010, 07:07 AM
Problem uploading PDF Files - by El Forum - 01-08-2010, 07:36 AM
Problem uploading PDF Files - by El Forum - 01-08-2010, 07:55 AM
Problem uploading PDF Files - by El Forum - 02-02-2010, 03:15 PM
Problem uploading PDF Files - by El Forum - 02-02-2010, 04:32 PM
Problem uploading PDF Files - by El Forum - 04-25-2010, 04:19 AM
Problem uploading PDF Files - by El Forum - 04-25-2010, 06:42 AM
Problem uploading PDF Files - by El Forum - 04-28-2010, 09:55 AM
Problem uploading PDF Files - by El Forum - 07-27-2010, 09:28 AM
Problem uploading PDF Files - by El Forum - 01-24-2011, 03:38 AM
Problem uploading PDF Files - by El Forum - 01-24-2011, 10:34 AM
Problem uploading PDF Files - by El Forum - 07-20-2011, 02:39 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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