The only way to do that is by using Javascript, which can be easily remove on the client.
Your best option is to move the file over to an temporal directory on your server, analyze the file and if its doesn't meet your requirement delete it and notify the user. On Mon, Nov 15, 2010 at 5:26 AM, MattyDE [via Apache Wicket] < [email protected]<ml-node%[email protected]> > wrote: > Hi, > > i have a fileUpload-Component and i want to check the used fileExtension > BEFORE Submitting the File to the server. > > Any ideas? > > ------------------------------ > View message @ > http://apache-wicket.1842946.n4.nabble.com/FileUpload-Validation-before-Submitting-tp3042673p3042673.html > To start a new topic under Apache Wicket, email > [email protected]<ml-node%[email protected]> > To unsubscribe from Apache Wicket, click > here<http://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_code&node=1842946&code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=>. > > > -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/FileUpload-Validation-before-Submitting-tp3042673p3042990.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
