Enctype
API reference › HTML › Form › Values › Enctype
Represents values for the HTML enctype attribute of the <form> element.
See also: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/form#enctype.
| Case | Value | Description |
|---|---|---|
APPLICATION_X_WWW_FORM_URLENCODED | 'application/x-www-form-urlencoded' | Represents the application/x-www-form-urlencoded token. The default value if the attribute is not specified. |
MULTIPART_FORM_DATA | 'multipart/form-data' | Represents the multipart/form-data token. Use this if the form contains <input> elements with type=file. |
TEXT_PLAIN | 'text/plain' | Represents the text/plain token. Useful for debugging purposes. |