-
Notifications
You must be signed in to change notification settings - Fork 293
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
Enable files to be set as value in FormData
#79
Comments
This is a great idea. Is this something you would like to work on? |
I'd love to. But there seems to be some issues that should be resolved first:
|
I just ran into this issue after creating most of my project and I've been in disbelief that this isn't available. Using a worker as a switchboard to send and receive files just makes sense to me; the functionality as a service is severely limited without this. |
@sfbr As a workaround, you can manually build a |
@kiwiyou Are you suggesting to send the request using that crate or to create the byte array and use it with this API? Additionally, I don't see where I would send |
Sorry for late response. I meant creating a form data, encoding it into a byte array, and attaching it as a request body. |
It's quite strange to have
FormData::get
returningFormEntry
withFormData::set
andFormData::append
accepting only&str
. It would be great if we can insertFile
or something like it directly intoFormData
.The text was updated successfully, but these errors were encountered: