PDA

View Full Version : uploading file



Ibis
19-Sep-2006, 09:46 PM
I've recently added an upload field to one of my forms & everthing works well (thanks Russell--your script is brilliant once again!). I'm just wondering if there's a way to have the upload open in a new window that has a message to leave open until upload is complete? Maybe this is something I have to do in the form itself? I've never done an upload field in a form before now, so I'm a bit clueless...

russellr
19-Sep-2006, 09:57 PM
Hi,

You cannot do this with FormMail itself. File uploading actually takes place between the user's browser and the server *before* FormMail gets executed.

So, you can do what you want (and it's a nice thing to do, especially for large file uploads) but you'll need to write some JavaScript.

If you're really clever, the page shown after the form submission can then automatically remove the popup window.

The other thing some people do, again using JavaScript, is to change the submit button to read "Please wait..." and then disable it so it cannot be clicked again.

It would be nice if browsers just had these friendly features built in, wouldn't it? :)