moxie icon indicating copy to clipboard operation
moxie copied to clipboard

Allow setting the filename when uploading a multipart with FormData

Open defrex opened this issue 12 years ago • 3 comments

According to the W3C FormData spec, the append method should have the following signature.

void append(DOMString name, Blob value, optional DOMString filename);

However, moxie currently doesn't support the third argument.

Thus the default filename "blob" is always used. It would be great if it could be specified, since for uploading images the lack of a file extension could become problematic.

defrex avatar Jun 03 '13 21:06 defrex

Hm. Sure. But have they added this recently? I don't remember anything like this before.

Anyway I agree, very handy, will get that in. Thanks for suggestion!

jayarjo avatar Jun 04 '13 05:06 jayarjo

2 years later... any progress? firefox/mozilla added support for "append with filename" (param 3) on 20130625 (v22): https://developer.mozilla.org/en-US/docs/Web/API/FormData/append

nickleus avatar Nov 11 '15 13:11 nickleus

You're welcome to send PR.

aik099 avatar Nov 11 '15 13:11 aik099