[ 
http://opensource.atlassian.com/projects/roller/browse/ROL-1631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_14207
 ] 

Yegor Kozlov commented on ROL-1631:
-----------------------------------

I got the same problem. Looks like the uploads.file.maxsize property conflicts 
with struts.multipart.maxSize.

Depending on the file size, roller and struts properties I'm getting two 
different messages:

 (1) if uploads.file.maxsize < file.size < struts.multipart.maxSize

you get a normal Roller message "Upload failed for test-file.zip"

 (2) if file.size > struts.multipart.maxSize you always get "The request was 
rejected because its size exceeds the
configured maximum (struts.multipart.maxSize)". 

As I understand the latter exception is thrown by Struts. It seems to be a bug 
because the Roller settings should overwrite Struts. 

A workaround  is to edit struts.properties and add the following line:

struts.multipart.maxSize=max_size_in_bytes

It works, but it is not what users expect. 

Regards,
Yegor

> Upload size error more than 2097152 bytes
> -----------------------------------------
>
>                 Key: ROL-1631
>                 URL: 
> http://opensource.atlassian.com/projects/roller/browse/ROL-1631
>             Project: Roller
>          Issue Type: Bug
>    Affects Versions: 4.0
>         Environment: Tomcat 6.0.14, Solaris10 x86
>            Reporter: Yossie
>            Assignee: Roller Unassigned
>
> When I upload files more than 2097152 bytes in Roller 4.0, the following 
> error occurs.
> -----------------------------------------------------------------------
> the request was rejected because its size (6020499) exceeds the
> configured maximum (2097152)
> -----------------------------------------------------------------------
> My "File Upload Settings" is
>   Max File Size (MB): 64
>   Max Directory Size (MB): 1024

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://opensource.atlassian.com/projects/roller/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to