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

cancel
Showing results for 
Search instead for 
Did you mean: 
vincentwah
Active Member

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

Jump to solution

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 Solution

Accepted Solutions
vincentwah
Active Member

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

Jump to solution

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

View solution in original post

9 Replies
mehe
Senior Member II

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

Jump to solution

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

douglascrp
Advanced II

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

Jump to solution

Are you using the Download as Zip action?

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

vincentwah
Active Member

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

Jump to solution

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.

vincentwah
Active Member

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

Jump to solution

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

mehe
Senior Member II

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

Jump to solution

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
Active Member

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

Jump to solution

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

jgoce91
Member II

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

Jump to solution

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

bip1989
Established Member

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

Jump to solution

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
Member II

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

Jump to solution

Great! Thanks so much, you.

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