Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting the filename when uploading a multipart with FormData #35

Open
defrex opened this issue Jun 3, 2013 · 3 comments
Open

Comments

@defrex
Copy link
Contributor

defrex commented Jun 3, 2013

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.

@jayarjo
Copy link
Contributor

jayarjo commented Jun 4, 2013

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!

@nickleus
Copy link

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

@aik099
Copy link
Contributor

aik099 commented Nov 11, 2015

You're welcome to send PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants