You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Tomek Piechowicz <to...@gmail.com> on 2009/08/18 10:27:05 UTC

Error uploading files.

Hi.
I`m trying to upload file via upload widget in CForms (Cocoon 2.2). When 
I try to upload text files everything goes fine, but when I try to 
upload zip, pdf or jpeg files then server throws exception :

Caused by: org.apache.cocoon.ResourceNotFoundException: Error during 
resolving of the input stream

Does anyone know what this error means ?

Regards,
Tomek Piechowicz

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


Re: Error uploading files.

Posted by Tomek Piechowicz <to...@gmail.com>.
Barbara Slupik pisze:
> Hello
>
> Do you have enctype="multipart/form-data" in your ft:form-template 
> element? It should look similar to this:
>
> <ft:form-template action="#{$cocoon/continuation/id}.continue" 
> method="POST" enctype="multipart/form-data">
>
> See http://cocoon.apache.org/2.2/blocks/forms/1.0/483_1_1.html
>
> Barbara
>
> On 18 Aug, 2009, at 10:27 am, Tomek Piechowicz wrote:
>
>> Hi.
>> I`m trying to upload file via upload widget in CForms (Cocoon 2.2). 
>> When I try to upload text files everything goes fine, but when I try 
>> to upload zip, pdf or jpeg files then server throws exception :
>>
>> Caused by: org.apache.cocoon.ResourceNotFoundException: Error during 
>> resolving of the input stream
>>
>> Does anyone know what this error means ?
>>
>> Regards,
>> Tomek Piechowicz
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
Thank you very much for your reply.

My problem was that I didn`t know that there is limit on upload file 
size (default 100kb ?). So after I set property :

org.apache.cocoon.uploads.maxsize = 10000000

everything started to work properly.

Regards,
Tomasz Piechowicz



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


Re: Error uploading files.

Posted by Barbara Slupik <ba...@wro.vectranet.pl>.
Hello

Do you have enctype="multipart/form-data" in your ft:form-template  
element? It should look similar to this:

<ft:form-template action="#{$cocoon/continuation/id}.continue"  
method="POST" enctype="multipart/form-data">

See http://cocoon.apache.org/2.2/blocks/forms/1.0/483_1_1.html

Barbara

On 18 Aug, 2009, at 10:27 am, Tomek Piechowicz wrote:

> Hi.
> I`m trying to upload file via upload widget in CForms (Cocoon 2.2).  
> When I try to upload text files everything goes fine, but when I try  
> to upload zip, pdf or jpeg files then server throws exception :
>
> Caused by: org.apache.cocoon.ResourceNotFoundException: Error during  
> resolving of the input stream
>
> Does anyone know what this error means ?
>
> Regards,
> Tomek Piechowicz
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>


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