jONEz
November 29th, 2002, 04:15 PM
I'm working on an intranet for a local business, and I've run into a small problem. Here's a rundown of what's going on;
User selects two files (from form), and clicks upload button. This spawns preload.cgi in a popup, which generates a frameset. The top frame is a loading image, and the bottom frame is another perl script (upload.cgi).
The bottom frame uploads the content, and when it completes the generated page (from upload.cgi) changes the content of the top frame to display a completed image.
The problem is, the frameset generated by preload.cgi loads one static page (framesrc="loading.html") whereas the bottom frame loads the upload.cgi (framesrc="/cgi-bin/upload.cgi?File1=....")
When I pass the file locations using this method I think I'm loosing the form enctype (multipart/form-data).
How can I use a manual post (eg. framesrc="blah.cgi?File1=...") and have the second script use the correct enctype?
Any help/suggestions are greatly appreciated!!!
I know this may sound confusing but it was the only way I could think of to have a loading image while a user uploads files, and change it (to a completed image) once the upload has finished.
User selects two files (from form), and clicks upload button. This spawns preload.cgi in a popup, which generates a frameset. The top frame is a loading image, and the bottom frame is another perl script (upload.cgi).
The bottom frame uploads the content, and when it completes the generated page (from upload.cgi) changes the content of the top frame to display a completed image.
The problem is, the frameset generated by preload.cgi loads one static page (framesrc="loading.html") whereas the bottom frame loads the upload.cgi (framesrc="/cgi-bin/upload.cgi?File1=....")
When I pass the file locations using this method I think I'm loosing the form enctype (multipart/form-data).
How can I use a manual post (eg. framesrc="blah.cgi?File1=...") and have the second script use the correct enctype?
Any help/suggestions are greatly appreciated!!!
I know this may sound confusing but it was the only way I could think of to have a loading image while a user uploads files, and change it (to a completed image) once the upload has finished.