the problem is file uploading with ajax - that's just not possible (restriction of the http protocol as far as I remember), however you can 'simulate' using some approaches, e.g. a hidden iframe where you post your file to. that topic has been discussed many times, just search the list - if i remember correctly there's already a component for that somewhere in wicketstuff ...
regards, Michael Thomas Lutz wrote: > > Hi list ! > > I'm trying to build a upload form consisting of one ore more fileuploads. > > If the file(s) already exist(s) on the server, I'd like to throw a > validation message, but, before uploading takes place. > > I tried to attach AjaxEventBehavior to the FileUploadField, onchange is > executed, but I've no access to the current value of the file input > element. Tried AjaxFormComponentUpdatingBehavior as well, no success. > > How should I approach this ? Basically all I need is ajaxing the onchange > with the "new value" back to the server. > > Thanks for your help, > Thomas > -- > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > ----- Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/fileupload-element-checking-filename-existing-before-upload-using-ajax-tp19181551p19184026.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
