Uploading Files
suggest changeImages 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>
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents