Re: [XHR2] Blobs, names and FormData

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 UTC