W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2011

Re: [XHR2] Blobs, names and FormData

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 29 Jun 2011 18:53:35 +0200
To: Alfonso Martínez de Lizarrondo <amla70@gmail.com>
Cc: "Jonas Sicking" <jonas@sicking.cc>, "Webapps WG" <public-webapps@w3.org>
Message-ID: <op.vxujvlci64w2qv@anne-van-kesterens-macbook-pro.local>
On Wed, 29 Jun 2011 18:34:58 +0200, Alfonso Martínez de Lizarrondo  
<amla70@gmail.com> wrote:
> My first simple approach was:
> formdata.append("elementName", blob, "picture.png");
> Jonas has suggested instead
> blobbuilder.getFile("picture.png")
> I don't mind one way or another, or something else you think it's better.
> I'm just requesting for a way to specify the filename (specifically the
> extension is the important part) that will be sent to the server.

Ah okay. In that case I think what Jonas suggested is fine. For Blob we  
use "blob" and if you do not want that create a File out of a Blob with a  
name of your choosing.

Anne van Kesteren
Received on Wednesday, 29 June 2011 16:54:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:20 UTC