The enctype property sets or returns the value of the enctype attribute in a form. The enctype attribute specifies how form-data should be encoded before sending it to the server.
The form-data is encoded to "application/x-www-form-urlencoded" by default. This means that all characters are encoded before they are sent to the server (spaces are converted to "+" symbols, and special characters are converted to ASCII HEX values).
<form action="" encType='multipart/form-data'>
{/* get any image file */}
<input type="file" name="" id="" accept='image/*'/>
</form>
research : understanding enctype in HTML form
read this
reference