go web handles uploads

To enable the form to upload files, the first step is to add the enctype attribute of the form. The enctype attribute has the following three cases:

application/x-www-form-urlencoded means to encode all characters before sending (default)
multipart/form-data does not encode characters. This value is required when using a form that contains a file upload control.
text/plain spaces are converted to "+" plus signs, but special characters are not encoded.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325633750&siteId=291194637