W3C home > Mailing lists > Public > www-validator@w3.org > March 2008

File Upload script dropping uploaded_file

From: Daniel Convissor <danielc@analysisandsolutions.com>
Date: Wed, 26 Mar 2008 20:00:57 -0400
To: www-validator@w3.org
Message-ID: <20080327000057.GA14900@panix.com>

Hi Folks:

I was using the Validate by File Upload system this morning without 
problems.  Tonight, every file I submit comes back with the following 
error message:

    Line 1, Column 0: end of document in prolog.

I'm looking at the post via HTTP Live Headers and it seems Firefox is 
submitting the request correctly (see headers below).

Thanks,

--Dan

PS:  I'm not subscribed to the list.


POST /check HTTP/1.1
Host: validator.w3.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) 
Gecko/20080201 Firefox/2.0.0.12
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
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://validator.w3.org/check
Content-Type: multipart/form-data; 
boundary=---------------------------2911152114253
Content-Length: 26752
-----------------------------2911152114253
Content-Disposition: form-data; name="uploaded_file"; 
filename="dream.htm"
Content-Type: text/html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
[... snipped for brevity on mailing list  ...]
</html>

-----------------------------2911152114253
Content-Disposition: form-data; name="charset"

(detect automatically)
-----------------------------2911152114253
Content-Disposition: form-data; name="doctype"

Inline
-----------------------------2911152114253
Content-Disposition: form-data; name="group"

0
-----------------------------2911152114253--


-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409
Received on Thursday, 27 March 2008 00:01:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:28 GMT