Jump to content


This topic is now archived and is closed to further replies.


Capturing source path for uploaded file

Recommended Posts


have an image upload form which works perfectly ([color=red]why not - it could happen[/color]). Fields are (1) the file to upload; (2) Caption for the image; and (3) a textarea for a brief description. The user is given an option on the form to 'preview'. When selected the script (a) uploads the file; and (b) redisplays the form with all the info filled in AND displays the image.

The Problem:

ok, ok so its not perfect!. I am able to re-display caption and the description in their respective fields; however; I am having a bit of a problem with the image 'path/name'.

The Question:

How, if it is possible, can one re-display the original 'path/name' in the appropriate field?

ie. the file resides on user's computer at c:\just my pictures\my_dog_fluffy.jpg

([i][b]ok so its a sissy dog[/b][/i])



Share this post

Link to post
Share on other sites
Unfortunatly you won't be able to do this with any ease - The value attribute for file inputs is ignored by all of the popular browsers for security reasons.

Share this post

Link to post
Share on other sites


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.