04-25-2017 10:19 PM
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
});
}
},
04-29-2017 01:14 AM
OK. I fixed it by adding download.maxContentSize=-1 in the alfresco-global.properties
04-27-2017 02:21 AM
Have you tried to set the limit in alfresco-global.properties (system.content.maximumFileSizeLimit) ?
04-27-2017 06:17 PM
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.
04-27-2017 06:41 AM
Are you using the Download as Zip action?
I am afraid those functions are used by that action, and not for the normal download.
04-27-2017 06:18 PM
Yes, I am using "Download as zip" action. Is it possible to increase the limit?
04-27-2017 09:37 PM
04-29-2017 01:14 AM
OK. I fixed it by adding download.maxContentSize=-1 in the alfresco-global.properties
12-04-2019 02:53 AM
Where can i Find global.propertis and change that setting ?
Tnx
12-05-2019 04:52 AM
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.
09-25-2024 12:35 AM
Great! Thanks so much, you.
Directions for everyone: [Disk]:\alfresco-community\tomcat\shared\classes\alfresco-global.properties
Explore our Alfresco products with the links below. Use labels to filter content by product module.