Closed dephiros closed 6 months ago
I have a simple form with one input value:
<form x-data="{use_cache: $persist(false)}" x-effect="console.log(use_cache)" x-target="notion" method="post" action="/notion"> <label> <input type="checkbox" name="use_cache" x-model="use_cache" /> Use cache </label> <button>Fetch</button> </form>
The form seems to use multipart/form-data instead of the default application/x-www-form-urlencoded enctype Would it be possible to set enctype?
multipart/form-data
application/x-www-form-urlencoded
enctype
Yeah x-www-form-urlencoded should be our default too. It appears that using FormData with fetch has a different default. Thanks for reporting this, I’ll try to get to it soon.
x-www-form-urlencoded
FormData
fetch
I have a simple form with one input value:
The form seems to use
multipart/form-data
instead of the defaultapplication/x-www-form-urlencoded
enctype
Would it be possible to setenctype
?