cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Coboos <cromo...@gmx.net>
Subject Re: File upload/Multipart form
Date Fri, 23 Jan 2004 19:14:35 GMT
Stephan Coboos wrote:

> Lionel Crine wrote:
>
>> The code is complicated because, at some moment we have to check 
>> which content-type was coming and what to do.
>> I don't know if it was a good choice but it worked.
>>
>> now, it's useless.
>>
>> So I did what you said and here is a new example :
>>
>> try {
>>
>> Object oXml = this.request.get("moduleXml");
>> Part pod = (Part) oXml;
>> InputStream is = pod.getInputStream();
>>
>> ] catch ..........
>>
>>
>> The getAttribute method returns null.
>>
> Hello Lionel,
>
> two questions:
>
> 1.) Did you set the param "enable-uploads" to "true" in 
> $COCOON_HOME/WEB-INF/web.xml?
> 2.) Did you send your form with "enctype="multipart/form-data" and 
> "method='POST'"?
>
> ... then getAttribute() should not return null. If so, please give us 
> some code, so I will see to help you.
>
Hello Lionel,

I'am sorry. You're right it must be get() and not getAttribute().

Regards
Stephan



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


Mime
View raw message