0
votes

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?

2
from client PC or your server drive?? - Yogesh Suthar
This is called a Bad Idea (tm) - Ja͢ck

2 Answers

0
votes

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?

-1
votes

i think it is possible but with j query. bcoz if saw at image sliders, in many image sliders images are picked up from a special folder and showed in slider..