Jump to content

Accessing user file path from $_FILES array?


hukadeeze

Recommended Posts

Is there an element in the $_FILES array that provides the full path to an uploaded document? I'm doing server-side form validation, and there are many other fields other than the upload field. If there is an error in the form the user is sent back to correct it. I'm sending back and displaying all the correct, completed information so the user doesn't have to re-enter it. I don't want the user to have to browse for the file again, so I want the full path to show in the upload field, rather than just the filename ($_FILES['file']['name']).

Link to comment
Share on other sites

What do you think would be a good way to handle it then? Put a note near the file input field telling them they don't have to do it again? Just let them do it again? If I didn't reload the field at all they would probably freak out and think they broke something

Link to comment
Share on other sites

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.