We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
blob
append
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
request.js
FormData.prototype.append
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I found when uploading a blob, there is no way to append the filename to the form data.
As the standard API say:
from
https://developer.mozilla.org/zh-CN/docs/Web/API/FormData/append
The filename of blob will be
![image](https://user-images.githubusercontent.com/447084/58338720-dcfa1e80-7e7a-11e9-858c-9f37d9279617.png)
blob
when omitting the filename field ofappend
methodFollowing is the snapshot of the request payload
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 theFormData.prototype.append
The text was updated successfully, but these errors were encountered: