developerasun / myCodeBox-web

Open source code box for web developers.
Apache License 2.0
5 stars 0 forks source link

HTML : enctype #205

Open developerasun opened 2 years ago

developerasun commented 2 years ago

research : understanding enctype in HTML form

read this

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>

image

reference