Jump to content

Capturing source path for uploaded file


litebearer

Recommended Posts

Scenario:

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])

Thanks,

Lite...
Link to comment
https://forums.phpfreaks.com/topic/13507-capturing-source-path-for-uploaded-file/
Share on other sites

Archived

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

×
×
  • 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.