Allowing objectToFormData to be forced #405
Replies: 3 comments
-
@reinink Perhaps it would be a good idea to move the |
Beta Was this translation helpful? Give feedback.
-
One way to solve this is to just manually do the |
Beta Was this translation helpful? Give feedback.
-
I just put together a PR for this: #407 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For dotnet projects you have to specify the data binding type (json/form data).
Which makes it inconvenient to use a form where a a file is optional. Because you have to have multiple method for the same action.
Ex. multipart/form-data
Ex. json
Allowing objectToFormData to be forced via options argument would help a lot with the boilerplate.
The change in inertia.js:
Example usage:
Beta Was this translation helpful? Give feedback.
All reactions