When using a form to upload a file via PHP, it appears that the browser user agent does some internal processing and only provides the actual file name, without the full path name, to the PHP global $_FILE. I have looked at most all the PHP server-side globals and have not as yet found any mention of the path to the uploading file.
It seems to me that this information must be available somewhere to enable the browser, via the form, to upload the file to the server.
If anyone knows where this path information is hiding and how it might be accessed, I sure would appreciate knowing to find it.
Thanks, Jim
It should be kept hidden by the UA for security reasons.
True, but it isn't sent along with the form submission. Javascript shouldn't be able to access the file text field's content either.
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)