Re: Validating WOUpload form element before submitting
Re: Validating WOUpload form element before submitting
- Subject: Re: Validating WOUpload form element before submitting
- From: Jonathan Rochkind <email@hidden>
- Date: Mon, 19 Apr 2004 15:25:21 -0500
The only way to do it would be with javascript----by the time it gets
to your WO application, the browser is _already_ uploading the file,
and there's no good way to get it to stop.
But I don't know if there's a way to do it with javascript, sorry.
Might be, might not be. But javascript is what you should be looking
at if you actually want to prevent an upload from happening based on
the file name.
You could, of course, allow them to upload the whole thing but then
simply not do anything with it. But that's not what you asked, and
certainly isn't the most desirable.
--Jonathan
At 3:23 PM -0400 4/19/04, Randall Perry wrote:
Got a WO component page which requests a filename from a user. The form is
submitted to a DirectAction for processing.
But, I need to make sure the filename starts with the customer's file code
and ends with '.zip' before allowing the upload.
I'm using WOFileUpload within a WOForm. Should I send the form to an action
that checks the name before sending it on to the DA, or is there a way to do
form validation of WOForms like you can with the javascript onsubmit()
method?
--
Randall Perry
sysTame
Xserve Web Hosting/Co-location
Website Development/Promotion
Mac Consulting/Sales
http://www.systame.com/
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.