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

filename field is missing when uploading a blob #186

Closed
tangye1234 opened this issue May 24, 2019 · 0 comments
Closed

filename field is missing when uploading a blob #186

tangye1234 opened this issue May 24, 2019 · 0 comments

Comments

@tangye1234
Copy link

I found when uploading a blob, there is no way to append the filename to the form data.

As the standard API say:

FormData.prototype.append(key, file)
FormData.prototype.append(key, blob, filename)

from
https://developer.mozilla.org/zh-CN/docs/Web/API/FormData/append

The filename of blob will be blob when omitting the filename field of append method
Following is the snapshot of the request payload
image

Some 3rd party upload server decides the filename only by reading the filename field.

So I think the request.js can receive another option field for the purpose of denoting the 3rd argument filename in the FormData.prototype.append

@tangye1234 tangye1234 changed the title filename field is missing when upload a blob filename field is missing when uploading a blob May 24, 2019
@tangye1234 tangye1234 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 16, 2023
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

1 participant