Documentation
¶
Overview ¶
Package enctype defines the EncType type and its predefined values.
MIME type for form data encoding when method is POST. Controls how form data is packaged and sent to the server, affecting file upload capability and data format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // UrlEncoded Default encoding for form data. Text fields are URL-encoded as key-value pairs. // Suitable for simple forms without file uploads. UrlEncoded = EncType("application/x-www-form-urlencoded") // MultipartFormData Required for file uploads and binary data. Each form field becomes a separate part // of the multipart message. Essential when form contains file input elements. MultipartFormData = EncType("multipart/form-data") // TextPlain Plain text encoding without URL encoding. Primarily for debugging purposes. // Not recommended for production forms due to limited browser support. TextPlain = EncType("text/plain") )
Variables for EncType values
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.