Jump to content

Recommended Posts

Using a form with enctype = "multipart/form-data and input type = "file" I can browse for a file on the users PC and upload to webpage. Is it possible to determine the full pathname of the file selected by the user? $_FILES['uploadedfile']['name'] gives just the file name not the full pathname. Is there a list of properties used by $_FILES. I can find only 'name', 'tmp_name', 'size', 'type', 'error'.

Link to comment
https://forums.phpfreaks.com/topic/302207-full-pathname-of-an-uploaded-file/
Share on other sites

No, it's not possible, and it would be a major privacy violation if the browser exposed local file paths. How my file system looks like is definitely none of your business.

 

Why do you think you need this?

Edited by Jacques1
  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.