Assigning a blob to a form does not convert it to FormData
See original GitHub issueVersions:
@inertiajs/inertia
version: 0.8.4@inertiajs/inertia-vue3
version: 0.3.5
Describe the problem:
When assigning a Blob
to a form created with useForm
, the form’s payload is not converted to a FormData
object prior to submission. Hence, the uploaded file is never sent.
Steps to reproduce:
form : useForm({
avatar : Blob,
}),
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
How to give a Blob uploaded as FormData a file name?
It is asking about assigning a filename, and doesn't the original filename qualify as a valid filename? – Mrchief. Jun 16, 2014 at...
Read more >Using FormData Objects - Web APIs | MDN
The number assigned to the field "accountnum" is immediately converted into a string by the FormData.append() method (the field's value can be a ......
Read more >Appending a Blob to FormData fails when filename not ...
I was able to address this in my own code for the time being by supplying the 3rd argument ( filename ) to...
Read more >FormData - The Modern JavaScript Tutorial
This chapter is about sending HTML forms: with or without files, with additional fields and so on. FormData objects can help with that....
Read more >BLOBs with RESTful API - Code On Time
The BLOB data is physically stored in the database or external storage. ... The order of the fields in the form-data is not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Published: https://github.com/inertiajs/inertia/releases/tag/v0.8.5
Understood! The change in #515 totally fixes this. Just tried it out myself in Ping CRM. 👍