We help IT Professionals succeed at work.

Get full file path from $_FILES['file']....

jset_expert
jset_expert asked
on
487 Views
Last Modified: 2012-08-13
Hi,

I have a file text box setup as in the following;
        <input name="file" type="file" size="45">

This is used for the user to locate an image for upload, the form posts to another page.

The problem is, when on the other page, I cannot get the full file path the user entered;

i.e. I am using $_FILES['file']['name'] but for C:\My Pictures\Me5.JPG for instance, the output will only be 'Me5.JPG', when I want the full path.

Is this possible?
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2006
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.