jiveforums | 26 Nov 12:29

How to change size limit for uploaded files

Hello, 

I've seen that nuxeo limits the size for uploading files to 100M and I want to maximize it. I've tried to
change that limit rewritting the script that contains it (.../nuxeo.war/WEB-INF/web.xml) but
everytime I reboot the service it creates a new web.xml with the old value. Is there any easy way to change it
and be able to upload bigger files?
Thanks in advance.

Raquel
--
Posted by "rrgv" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: <http://www.nuxeo.org/discussions/thread.jspa?threadID=2134#5803>
Julien CARSIQUE | 1 Dec 16:25

Re: How to change size limit for uploaded files

Hello,

I bet you use Nuxeo 5.1 as there's no more default limit with 5.2

Nuxeo 5.1: edit
nuxeo-platform-ui-web*.jar/src/main/resources/OSGI-INF/deployment-fragment.xml

Nuxeo 5.2: you can set a limit in
nuxeo.ear/OSGI-INF/templates/components.xml

Best regards,
Julien

jiveforums-ecm@... a écrit :
> Hello, 
>
> I've seen that nuxeo limits the size for uploading files to 100M and I want to maximize it. I've tried to
change that limit rewritting the script that contains it (.../nuxeo.war/WEB-INF/web.xml) but
everytime I reboot the service it creates a new web.xml with the old value. Is there any easy way to change it
and be able to upload bigger files?
> Thanks in advance.
>
> Raquel
> --
> Posted by "rrgv" at Nuxeo Discussions <http://nuxeo.org/discussions>
> View the complete thread: <http://www.nuxeo.org/discussions/thread.jspa?threadID=2134#5803>
> _______________________________________________
> ECM mailing list
> ECM@...
> http://lists.nuxeo.com/mailman/listinfo/ecm
(Continue reading)

Enrique Perez | 27 Nov 08:42

Re: How to change size limit for uploaded files

Hello Raquel,

When you start the Nuxeo server, the nuxeo.war folder is generated 
again. So, if you modify the web.xml file when you start the server this 
file is overrided.

So, you must create a new plugin to override this property.

I've done it using the following steps, I don't know if there is an easy 
way:

To add a contribution to the web.xml file you have to use the 
deployment-fragment.xml file from your extension project.

You can see the web.xml template in 
{$NUXEO_EP_FOLDER}/server/default/deploy/nuxeo.ear/OSGI-INF/templates/web.xml

The size of the uploaded files is in the %{FILTER}% section. So, you 
must overrided it with your new configuration. This section is defined 
in the deployment-fragment from the nuxeo-platform-ui-web package.

Take a look to this file (you can find the package in the 
/nuxeo.ear/platform folder) and copy in your deployment-fragment the 
"<extension target="web#FILTER">" section. Attention: copy all the section.

To override it, you have to set the mode to replace. So you must have 
something like that:

<extension target="web#FILTER" mode="replace">

(Continue reading)

jiveforums | 22 Dec 13:48

Re: How to change size limit for uploaded files

Hi, 

I would like to refresh this post and ask again the same question. Specially I'd like to ask it to nuxeo
developers not only hopping that there is any easy-way solution but to know if it is possible. 

Thanks again.
--
Posted by "rrgv" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: <http://www.nuxeo.org/discussions/thread.jspa?threadID=2134#5913>
jiveforums | 23 Dec 10:15

Re: How to change size limit for uploaded files

Hello Raquel,

I saw your post from the Nuxeo mailing list and I replied you from there. I suppose that when I write in the
mailing list, a post is created in the forum, but it seems that it doesn't...

Anyway, you can see your replies in the mailing list in the following link:

http://www.nabble.com/How-to-change--size-limit-for-uploaded-files-td20698295.html

Regards.
--
Posted by "enriqueperez" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: <http://www.nuxeo.org/discussions/thread.jspa?threadID=2134#5923>

Gmane