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.