hx-encoding
Задаёт тип кодировки запроса
Атрибут hx-encoding изменяет кодировку запроса.
По умолчанию запросы используют application/x-www-form-urlencoded. Используйте multipart/form-data для загрузки файлов.
Синтаксис
<form hx-post="/upload" hx-encoding="multipart/form-data">
<input type="file" name="file">
<button type="submit">Upload</button>
</form> Значение этого атрибута должно быть multipart/form-data.
Тег hx-encoding можно размещать на родительских элементах.
Licensed under the Zero-Clause BSD License.
https://four.htmx.org/reference/attributes/hx-encoding/