How about if I add 2 forms, one for fields and one for file upload

and submit first form from submit of the file upload form and 
if the validation of the first form fails, not
proceed with the

second form submission which is the file upload form. 
Is this
doable or so utopic?


fmu

> From: [email protected]
> Date: Fri, 10 Jul 2009 16:51:18 -0700
> Subject: Re: validation of upload form
> To: [email protected]
> 
> unfortunately that is now how http works. first you get all the data
> uploaded - including the file - then you get to process it.
> 
> -igor
> 
> On Fri, Jul 10, 2009 at 2:49 PM, fm u<[email protected]> wrote:
> >
> > thats one solution but I wont be able to use those fancy ajax feedback 
> > panel thing and
> > also wicket overrides the form's onsubmit with its own code.
> >
> > If possible, validating the form before file is uploeded would do the best?
> >
> >
> >
> >> -----Original Message-----
> >> From: Jeremy Thomerson [mailto:[email protected]]
> >> Sent: 10 July 2009 16:07
> >> To: [email protected]
> >> Subject: Re: validation of upload form
> >>
> >> Validate client-side?
> >>
> >> --
> >> Jeremy Thomerson
> >> http://www.wickettraining.com
> >>
> >>
> >>
> >>
> >> On Fri, Jul 10, 2009 at 9:08 AM, fm u<[email protected]> wrote:
> >> >
> >> > hi,
> >> >
> >> > I am using simple ajax file upload with UploadProgressBar.
> >> > I also have a required textarea in the same form.
> >> > But
> >> > when I try to upload a file without filling the required textarea,
> >> > the
> >> > file is uploaded first and then the validation error messages appear.
> >> >
> >> > What should I do to validate the form before actually uploading the file?
> >> >
> >> > Thanks,
> >> > fmu
> >> >
> >> > _________________________________________________________________
> >> > Windows LiveT Photos: it's easy to store and manage your photos online.
> >> See how.
> >> >
> >> http://windowslive.com/Online/Photos?ocid=TXT_TAGLM_WL_CS_PH_store_manage_07
> >> 2009
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >
> > _________________________________________________________________
> > Lauren found her dream laptop. Find the PC that’s right for you.
> > http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 

_________________________________________________________________
Windows Live™ SkyDrive™: Get 25 GB of free online storage.
http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009

Reply via email to