Regarding where file is store: public void onSuccess() { UploadedFile uploadedFile = uploaded.get(0);
File file = new File("/where/i-want/file-to-save"); uploadedFile.write(file); } On Fri, Dec 9, 2011 at 3:11 PM, Dmitriy Vsekhvalnov <dvsekhval...@gmail.com>wrote: > did you wrap <input> to <form>? > > <t:form t:id="myForm"> > <input t:type="tawus/AjaxUpload" .... /> > </t:form> > > There is maxFiles parameter which you can specify for AjaxUpload. > Default is 1 :) > > > On Fri, Dec 9, 2011 at 2:58 PM, angelochen <angelochen...@yahoo.com.hk>wrote: > >> Hi Dmitriy, >> >> you just turned a maven user into gradle today:) ok, it works. now, >> after click 'upload', where is the file uploaded? second, why only one >> file? >> and this seems not got called: >> >> @Persist >> @Property >> private List<UploadedFile> uploads; >> void onSuccess(){ >> //Use uploads >> >> if (uploads.size() >0) { >> System.out.println(uploads.get(0).getFileName()); >> } >> uploads.clear(); >> } >> >> thanks, >> >> >> Dmitriy Vsekhvalnov wrote >> > >> > this means, you didn't install ajaxupload to your local maven repo. >> > >> > Please do: gradle install. >> > >> > On Fri, Dec 9, 2011 at 2:01 PM, angelochen >> > <angelochen960@.com>wrote: >> > >> >> i added that to pom.xml but get this: >> >> >> >> Downloading: >> >> >> >> >> https://repository.apache.org/content/groups/staging/com/googlecode/tawus/tawus-ajaxupload/0.1-SNAPSHOT/maven-metadata.xml >> >> Downloading: >> >> >> >> >> https://repository.apache.org/content/groups/staging/com/googlecode/tawus/tawus-ajaxupload/0.1-SNAPSHOT/tawus-ajaxupload-0.1-SNAPSHOT.pom >> >> [WARNING] The POM for >> >> com.googlecode.tawus:tawus-ajaxupload:jar:0.1-SNAPSHOT >> >> is missing, no dependency information available >> >> Downloading: >> >> >> >> >> https://repository.apache.org/content/groups/staging/com/googlecode/tawus/tawus-ajaxupload/0.1-SNAPSHOT/tawus-ajaxupload-0.1-SNAPSHOT.jar >> >> >> >> -- >> >> View this message in context: >> >> >> http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5061396.html >> >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: users-unsubscribe@.apache >> >> For additional commands, e-mail: users-help@.apache >> >> >> >> >> > >> >> >> -- >> View this message in context: >> http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5061512.html >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> >