W3C home > Mailing lists > Public > www-talk@w3.org > July to August 2002

RE: POST but not multipart/form-data for file upload

From: Mike Dierken <mike@dataconcert.com>
Date: Tue, 6 Aug 2002 18:17:11 -0700
Message-ID: <2AE31649CF989F4FB354F6D95EB0CE6E5CEEB8@xmlfmail.xmlfund.com>
To: www-talk@w3.org
Cc: "'jhui@us.ibm.com'" <jhui@us.ibm.com>



> 
> Can I upload a file via the POST method, but not using 
> multipart/form-data?

The HTTP specification allows this just fine. Browsers don't provide easy
access to it though.

Both the client and the server have to understand what the bytes after the
headers look like.
This is indicated via the Content-Type: header. You can use Content-Type:
text/xml and send XML - your server probably can be coded to understand this
pretty easily.

You may be able to do this in some browsers that support script and have
some helper components - like XMLHTTPRequest in IE and XMLHttpRequest in
Mozilla.
Received on Tuesday, 6 August 2002 21:18:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 October 2010 18:14:27 GMT