PHP MySQL: Is it possible to upload only the file location (text) instead of...

yecalrae

New member
...the image using the file field? I'm trying to upload only the file location of the image instead of storing the actual image in the database. I'd rather not type in the text myself, so I'm using a form.
These are images that are on my hard drive / test server. I'm not pulling images from an odd location.
Looks like I'll be typing in stupid links.
 
By design, Web broswers / HTML / JavaScript do not allow access to a visitor's file system. The file control intentionally does not include the local file path.

Since PHP and MySQL run on your server, they cannot access the client's file system, either.

You can access the client's file system via a Java applet or ActiveX control, but it requires the visitor to install the control / applet and authorize it to access the file system.
 
Back
Top