- From: Jonas Sicking <jonas@sicking.cc>
- Date: Wed, 29 Jun 2011 11:17:52 -0700
- To: Anne van Kesteren <annevk@opera.com>
- Cc: Alfonso Martínez de Lizarrondo <amla70@gmail.com>, Webapps WG <public-webapps@w3.org>
2011/6/29 Anne van Kesteren <annevk@opera.com>: > 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. Just a small nit: We would also use "blob" for File objects with an empty .name property, right? / Jonas
Received on Wednesday, 29 June 2011 18:18:48 UTC