You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Angelo Chen <an...@yahoo.com.hk> on 2009/06/05 18:29:39 UTC

Re: T5 with swfuploader stream failure

any sample code/tml for using swfuploader with t5? thanks.


Ronny L wrote:
> 
> Hi Martin
> 
> Just figure out how to grab the file.
> 
> basically just inject the service
> 
> @Inject
> private MultipartDecoder decoder;
> 
> and 
> 
> private UploadedFile file;
> file = decoder.getFileUpload("Filedata");
> 
> voila.. just that simple :)
> thanks for the clue.
> 
> Ronny
> 
> 
> Martijn Brinkers (List)-2 wrote:
>> 
>>> something else to recognize the uploaded files. This will only work if
>>> the names used by the SWF uplaoder for the items is known. If not you
>>> have to create your own version of MultipartDecoderImpl I think
>> 
>> Not completely true I think because it looks like the file item names
>> (and filenames) can be retrieved from the HttpServletRequest and these
>> names can be used to get the file from the injected MultipartDecoder.
>> 
>> This has all theorectical, ie. I have not tested it
>> 
>> Martijn
>> 
>> On Thu, 2008-11-13 at 14:06 +0100, Martijn Brinkers wrote:
>>> Looking at MultipartDecoderImpl it seems that it supports multtiple
>>> files. Only it seems that the Upload component makes it a little harder
>>> to support a dynamic list (it seems to use the element name). You can
>>> however create your own version of the Upload component to make it
>>> easier to support multiple files by not using the element name but
>>> something else to recognize the uploaded files. This will only work if
>>> the names used by the SWF uplaoder for the items is known. If not you
>>> have to create your own version of MultipartDecoderImpl I think
>>> 
>>> Martijn Brinkers
>>> 
>>> On Thu, 2008-11-13 at 13:53 +0100, Martijn Brinkers wrote:
>>> > I think you should create your own version of Tapestry-upload. I think
>>> > your problem is that Tapestry already fully reads the content of the
>>> > request and therefore it always returns -1. You should take a look at
>>> > Tapestry-upload and create your own version based on it that supports
>>> > multiple files.
>>> > 
>>> > Martijn Brinkers
>>> > 
>>> > On Thu, 2008-11-13 at 04:10 -0800, Ronny L wrote:
>>> > > anyone can help ? how can I get the content request
>>> > 
>>> > 
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> > For additional commands, e-mail: users-help@tapestry.apache.org
>>> > 
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/T5-with-swfuploader-stream-failure-tp20415947p23891433.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org