in reply to Previewing With Local Image Links
I think it might be possible to get this to work using some heavy JavaScript wizardry to snatch the file name from the upload control and modifying the the HTTP request that gets sent to the server so that the file doesn't get uploaded, but the filename does. It's been several years since I did JS stuff however, so don't take my word for it.
If on the other hand your relying solely on CGI.pm and no client-side scripting, I'd say that it wouldn't work. The file path/name using CGI->upload() is not the path to the file on the client, so you wouldn't be able to use that. You could do it by letting your users hand-type the path into a text box and using that input to build the preview page, but that's not really user-friendly.
Cheers,
-- moodster
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Previewing With Local Image Links
by Cody Pendant (Prior) on Feb 04, 2002 at 10:24 UTC | |
by moodster (Hermit) on Feb 04, 2002 at 10:37 UTC | |
by Cody Pendant (Prior) on Feb 05, 2002 at 01:07 UTC |