Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 55031 invoked from network); 10 May 2007 20:31:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 May 2007 20:31:11 -0000 Received: (qmail 86947 invoked by uid 500); 10 May 2007 20:31:09 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 86892 invoked by uid 500); 10 May 2007 20:31:08 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 63385 invoked by uid 99); 9 May 2007 20:22:39 -0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Message-Id: <4641D909020000F5000041AA@inet-wh1.gmhwh.org> X-Mailer: Novell GroupWise Internet Agent 7.0.1 Date: Wed, 09 May 2007 14:22:01 -0600 From: "Matt Wheeler" To: Subject: FileUpload Issue Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=__Part381F3179.0__=" X-Disclaimer: True X-Proofpoint-Virus-Version: vendor=fsecure engine=4.65.5502:2.3.11,1.2.37,4.0.164 definitions=2007-05-09_04:2007-05-09,2007-05-09,2007-05-09 signatures=0 X-Virus-Checked: Checked by ClamAV on apache.org --=__Part381F3179.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit I am using the file upload component as follows: In my validator, I check the file size, and if it is 0, I display an error to the user saying that they entered an invalid file path, but this does not work all of the time. 1.If the user clicks the Browse button, selects a file (clicks Open on the browse dialog), and then changes the path to an invalid path, the validator is called, and the size is 0, and everything works correctly. 2.If the user just types an invalid path into the component however, and submits the page, the validator does not seem to be called. I have been stepping through FileUploadBase, and have not been able to see a difference. So, I was just wondering if there is a good way to handle the second situation? Thanks, Matt W. ---------------------------------------------------------------------- NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. --=__Part381F3179.0__=--