When using hx-boost, a totally native HTML form tag like this should still work correctly:
<form method="post" action="/upload" enctype="multipart/form-data">
It is unexpected (and difficult to debug) behavior when the form refuses to submit multipart as expected because hx-boost converts it to an AJAX request which then requires an hx-encoding attribute rather than enctype.
Proposed solution: HX-Boost currently converts native HTML in anchor tags and form tags to make an AJAX request instead. In addition to attributes such as href, method, action, HX-Boost should also respect enctype.
When using
hx-boost, a totally native HTML form tag like this should still work correctly:<form method="post" action="/upload" enctype="multipart/form-data">It is unexpected (and difficult to debug) behavior when the form refuses to submit multipart as expected because
hx-boostconverts it to an AJAX request which then requires anhx-encodingattribute rather thanenctype.Proposed solution: HX-Boost currently converts native HTML in anchor tags and form tags to make an AJAX request instead. In addition to attributes such as
href,method,action, HX-Boost should also respectenctype.