[whatwg] multipart/form-data when POSTing through an XMLHttpRequest (FileApi file)

Anne van Kesteren annevk at opera.com
Fri Sep 17 11:46:44 PDT 2010


On Fri, 17 Sep 2010 20:41:19 +0200, Dennis Joachimsthaler  
<dennis at efjot.de> wrote:
> I do currently wonder, after a lot of hours of researching, if there is  
> any possibility to upload files with values through XMLHttpRequest?
>
> The XmlHttpRequest just ends the request after the first "send".
>
> There should be a more thought out API for multipart/form-data since we  
> have the new FileApi.

Of course:  
http://dev.w3.org/2006/webapi/XMLHttpRequest-2/#the-formdata-interface


> Any suggestions? (Or, any knowledge how it is done today? I can't find  
> anything about it! Crazy.)


-- 
Anne van Kesteren
http://annevankesteren.nl/



More information about the whatwg mailing list