cancel
Showing results for 
Search instead for 
Did you mean: 

Max document size by site

gojko
Champ in-the-making
Champ in-the-making
One thing I need to configure is maximum document size by site. I've found some info on how to set up global document size, but how would one go about setting it per-site?
6 REPLIES 6

gojko
Champ in-the-making
Champ in-the-making
Currently I would appreciate help to set this up even without being site-specific.

As here, I have edited both /opt/alfresco-4.2.f/tomcat/webapps/share/WEB-INF/classes/alfresco/share-documentlibrary-config.xml and /opt/alfresco-4.2.f/tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml and set up the  <maximum-file-size-limit>1048576</maximum-file-size-limit> in both files to 10MB, but I am still allowed to upload very large files.

Here I've found the same probelm:
http://stackoverflow.com/questions/19933566/how-can-i-set-a-size-limit-for-files-uploaded-in-alfresc...

What is the correct way to set the maximum upload size?



gojko
Champ in-the-making
Champ in-the-making
I have set up this for global settings. However, I am out of ideas how to make it site-specific at this point … if anyone can help with this I would really appreciate it. I guess there needs to be created a class that overrides the defaultContentLimitProvider.

Here's how I've done it, substitute paths for your own installation:

edit /opt/alfresco-4.2.f/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/content-services-context.xml
Uncomment the line: <property name="contentLimitProvider" ref="defaultContentLimitProvider"/>

edit /opt/alfresco-4.2.f/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/repository.properties
system.content.maximumFileSizeLimit=10485760  // or whatever size you want

edit /opt/alfresco-4.2.f/tomcat/webapps/share/components/upload/dnd-upload.js
_maximumFileSizeLimit: 10485760   // or whatever size you want

I coldn't find this anywhere, so I hope it helps someone.

gojko
Champ in-the-making
Champ in-the-making
Anyone got any ideas how to limit the uploaded file size per site?

lmaorence
Confirmed Champ
Confirmed Champ

Hi All,

I'm also interested in this feature per Site storage limit, is this already available in Alfresco 5.1 Community Edition? I really haven't found anything related to this concern.

Regards,

Lawrence

Probably this can help you: 

https://github.com/keensoft/alfresco-myfiles-quota


It’s based in a behavior.

Hyland Developer Evangelist

Thanks Angel Borroy‌ will definitely try this. Cheers!