W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2011

RE: [XHR2] Blobs, names and FormData

From: Adrian Bateman <adrianba@microsoft.com>
Date: Mon, 18 Jul 2011 20:05:02 +0000
To: Michael Nordman <michaeln@google.com>
CC: Charles Pritchard <chuck@jumis.com>, Jonas Sicking <jonas@sicking.cc>, Anne van Kesteren <annevk@opera.com>, Julian Reschke <julian.reschke@gmx.de>, Alfonso Martínez de Lizarrondo <amla70@gmail.com>, "Webapps WG" <public-webapps@w3.org>
Message-ID: <104E6B5B6535E849970CDFBB1C5216EB4354702C@TK5EX14MBXC136.redmond.corp.microsoft.com>
On Monday, July 18, 2011 12:52 PM, Michael Nordman wrote:
> The problem is around naming the binary parts attached to multi-part-form-encoded
> FormData. I think I'm in favor of the more direct solution to this problem,
> providing a FormData.append() variant that optionally  allows the caller to
> specify a name. If no name is provided and the blob is a File, the filename is
> used, otherwise a non-empty value generated by the client is used.
>
>  formdata.append("elementName", blob, "picture.png");
>
> BlobBuilder.getFile() as a solution to this particular problem is less direct
> (and less obvious and less discoverable so less friendly). And it raises
> questions like... Is the blob data really flattened out as a file on the disk
> somewhere? If not, then getFile() is somewhat misleading. Is so, we may have to
> create actual files when we otherwise wouldn't. Where is this file created? When
> does it get deleted?

+1 I agree completely.
Received on Monday, 18 July 2011 20:05:44 GMT

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