PHP – How to load a FILE in PHP from a form
To find out how to load a file in PHP from a form, you have to start by formatting the form correctly. It is mandatory to use the post method as well as the multipart/form-data enctype, otherwise PHP will not receive the necessary data. <form action=”/” method=”post” enctype=”multipart/form-data”> <input type=”file” name=”namefile” /> <input type=”submit” value=”ok” … Read more