How do I enable a user to be able to select a file from the desktop and load it to a server using php?
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First put this in a file called
upload.php:And then put this in a file called
upload-file.html:Make sure these 2 files are in the same directory.
And lastly, create another directory called “uploads” in the same one as the 2 files above.
If you want more information, here is the tutorial.
I hope this helps.