[whatwg] multipart/form-data when POSTing through an XMLHttpRequest (FileApi file)
dennis at efjot.de
Fri Sep 17 11:59:57 PDT 2010
Am 17.09.2010, 20:56 Uhr, schrieb Dennis Joachimsthaler <dennis at efjot.de>:
> Am 17.09.2010, 20:46 Uhr, schrieb Anne van Kesteren <annevk at opera.com>:
>> On Fri, 17 Sep 2010 20:41:19 +0200, Dennis Joachimsthaler
>> <dennis at efjot.de> wrote:
> (Or, any knowledge how it is done today? I can't find
>>> anything about it! Crazy.)
>> Of course:
> Oh? It doesn't seem to allow me to insert files though. And where do I
> set the content-type?
> Currently I am trying it like this:
> Downside is that the first send() will end the request already.
> The file variable is a file gotten from the FileApi.
I am dumb. The blob and file already contain the needed content-type.
Sorry. Got it now... Heh.
Thank you Anne
More information about the whatwg