Martin,

Apparently tapestry has consumed the whole inputstream from the request
object. FileUpload will not be able to pick up the file stream. Do you know
where I can retrieve back the http raw data from Tapestry ?


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: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> > 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to