I have requirement to upload photos to server using php. Usually, the user selects the image to upload using html file input and we upload the file on submit. My requirement is to avoid the file selection step. As soon the user visits my web page, a file from C:\photo.jpg has to be uploaded to server. Is it possible using php?
I have requirement to upload photos to server using php. Usually, the user selects
Share
Impossible, you cannot directly access the drive from browser. It’s a security issue.
Just think about what it will happen if I can gather 1 file from each visitor, let’s say saved passwords from browsers?