cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to change the download file size limit in Share?

vincentwah
Champ on-the-rise
Champ on-the-rise

Hi,

I have one question about the donwload file size limit in Share. 

When I download a large file, I got a message popup "The content is too large to download. The maximum download size is 2GB, the selected files are 2.9GB."

Is it possible to change this file size limit to 3GB or 4GB?

I think the message is catpured in the archive-and-download.js by below code

 archiveProgressSuccess: function ArchiveAndDownload_archiveProgressSuccess(response)
{

else if (response.json.status == "MAX_CONTENT_SIZE_EXCEEDED")
{
// The file size is too large to be zipped up:
Alfresco.util.PopupManager.displayPrompt(
{
text: this.msg("message.maxContentSizeExceeded", Alfresco.util.formatFileSize(response.json.done), Alfresco.util.formatFileSize(response.json.total, 2))
});
this.panel.hide();
}
},

And this function is get called by 

getArchivingProgress: function ArchiveAndDownload_getArchivingProgress(prevFailures)
{
if (this._currentArchiveNodeURL != null && this._currentArchiveNodeURL != "")
{
Alfresco.util.Ajax.jsonGet({
url: Alfresco.constants.PROXY_URI + "api/internal/downloads/" + this._currentArchiveNodeURL + "/status",
responseContentType : "application/json",
successCallback:
{
fn: this.archiveProgressSuccess,
scope: this
},
failureCallback:
{
fn: this.archiveProgressFailure,
scope: this
},
failureCount: prevFailures
});
}
},

1 ACCEPTED ANSWER

vincentwah
Champ on-the-rise
Champ on-the-rise

OK. I fixed it by adding download.maxContentSize=-1 in the alfresco-global.properties

View answer in original post

9 REPLIES 9

mehe
Elite Collaborator
Elite Collaborator

Have you tried to set the limit in alfresco-global.properties  (system.content.maximumFileSizeLimit) ?

vincentwah
Champ on-the-rise
Champ on-the-rise

Yes, I set system.content.maximumFileSizeLimit=1000000 on my dev environment. However, it does not popup the message if I download file larger than 1MB. Seems this property does not take effect.

douglascrp
World-Class Innovator
World-Class Innovator

Are you using the Download as Zip action?

I am afraid those functions are used by that action, and not for the normal download.

Yes, I am using "Download as zip" action. Is it possible to increase the limit?

mehe
Elite Collaborator
Elite Collaborator

Ok... I can remember that I also had problems to import ACP files bigger than 2GB because there was a bug in the Java @zip lib (Alfreco 3/4). Maybe this is a hardcoded limit due to this old Java 6 (?) bug. Also some clients (windows WebDAV) have a default restriction of 2GB - maybe ‌ knows more.

vincentwah
Champ on-the-rise
Champ on-the-rise

OK. I fixed it by adding download.maxContentSize=-1 in the alfresco-global.properties

jgoce91
Champ in-the-making
Champ in-the-making

Where can i Find global.propertis and change that setting ?
Tnx

bip1989
Star Contributor
Star Contributor

alfresco-global.properties can be in your custom module (yourModule/alfresco/module/alfresco-global.properties) and <TomcatHomr>/shared/classes directory. 

you can make changes at any of these locations. 

hienlt52
Champ in-the-making
Champ in-the-making

Great! Thanks so much, you.

Directions for everyone: [Disk]:\alfresco-community\tomcat\shared\classes\alfresco-global.properties