summaryrefslogtreecommitdiffstatshomepage
path: root/www/content/attributes/hx-encoding.md
blob: 9e8d544953ef4219c6102d6119506b0dca43ef88 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
+++
title = "hx-encoding"
+++

The `hx-encoding` attribute allows you to switch the request encoding from the usual `application/x-www-form-urlencoded`
encoding to `multipart/form-data`, usually to support file uploads in an ajax request.

The value of this attribute should be `multipart/form-data`.

The `hx-encoding` tag may be placed on parent elements.

## Notes

* `hx-encoding` is inherited and can be placed on a parent element