fileUploadField uploads even when it shouldn't

2008-02-21 Thread Dan Kaplan
Hello, I've made an upload form and wanted to add a cancel button to it. The cancel button is clicked if the user decides he doesn't want to upload (before he uploads) and should redirect back to another page. This works pretty well except I noticed that if the user chooses a file then

Re: fileUploadField uploads even when it shouldn't

2008-02-21 Thread Igor Vaynberg
its happening because you are using input type=submit for the cancel button, which of course submits the form. you should instead use a link for cancel buttons. you can attach a link to a input type=button if you want cancel to still be a button btw... -igor On Thu, Feb 21, 2008 at 5:56 PM, Dan