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
http://annevankesteren.nl/
Received on Wednesday, 29 June 2011 16:54:14 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:45 GMT