Uploading Files

suggest change

Images and files can be uploaded by setting the enctype attribute of the <form> element to multipart/form-data. enctype specifies how the form data is encoded when it is submitted to the server. A file input is ignored unless the encoding is multipart/form-data.

Example

<form method="post" enctype="multipart/form-data" action="upload.php"> 
    <input type="file" name="pic" />
    <input type="submit" value="Upload" />
</form>

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents