CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Validate File upload

Print topic Send  topic

Author Message
lbarrow

Posts: 8
Posted: 02/22/2006, 12:13 PM

I am using the file upload component with ActiveFile Upload by Infomentum and it works well. I want to require that a document be attached, if a certain field is > 0. If I try to use the ON VALIDATE event for this, the file gets uploaded to the TEMP folder, then the page clears the file upload field and the users receives the ON VALIDATE error message. Here is my ON VALIDATE code:
IF book.pcs.value>0 and isempty(book.bupload1.value) then
book.errors.adderror("You must attach a document for any order with pcs.")
end if
I have also tried:
IF book.pcs.value>0 and not book.bupload1.isuploaded then
book.errors.adderror("You must attach a document for any order with pcs.")
end if
Either way gets me the same result. What am I doing wrong?
Thanks,
Lorraine
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.