Jump to content


Capturing source path for uploaded file

  • Please log in to reply
1 reply to this topic

#1 litebearer

  • Members
  • PipPipPip
  • Advanced Member
  • 2,357 posts
  • Locationwhite lake michigan

Posted 03 July 2006 - 01:06 AM


have an image upload form which works perfectly (why not - it could happen). 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

(ok so its a sissy dog)



all the brothers were valiant!

[br][br]The truely intelligent people are not those who create the dots; rather they are they ones with the ability to connect the dots into a coherent picture

#2 Kris

  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

Posted 03 July 2006 - 03:13 PM

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.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users