the version i use was Tapestry 4.1.6, the main problem is the upload file'id;in your code: *UploadedFile file = decoder.getFileUpload("Filedata"); * "Filedata" is the upload file'id? and all the files uploaded from the swfupload have the same id "Filedata"? if not, Could you tell me how you get all the uploaded file'id please?
2009/2/11 akochnev <akoch...@gmail.com> > > I tried responding to this from my email; however, I got bumped cause > apache > didn't like my email for spam reasons... Anyway.. > > Search for SwfUploader on the mailing list archive for more details, the > short version of it is: > > 1. Add tapestry5-upload as a dependency to your project > 2. In your page: > > * inject the MultiPartDecoder, e.g. > > @Inject > private MultipartDecoder decoder; > > * in your event handler , you can get access the uploaded data : > > UploadedFile file = decoder.getFileUpload("Filedata"); > > I'm using SwfUploader to upload multiple files using this approach, works > like magic ! > > Cheers, > > Alex Kotchnev > > Wayward Java小白 wrote: > > > > i want to upload several file in one request. in my upload page, i have > > only one componet upload these files. in ServletMultipartDecoder Service > > find a getFileUpload(String parameterName),but i can't give name of every > > file. could i get all the files in the request from > > ServletMultipartDecoder > > Service? > > > > > > -- > View this message in context: > http://n2.nabble.com/ServletMultipartDecoder-Question-tp2301706p2306759.html > Sent from the Tapestry Users 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 > >