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
});
}
},
Solved! Go to Solution.
OK. I fixed it by adding download.maxContentSize=-1 in the alfresco-global.properties
Have you tried to set the limit in alfresco-global.properties (system.content.maximumFileSizeLimit) ?
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 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.
Yes, I am using "Download as zip" action. Is it possible to increase the limit?
OK. I fixed it by adding download.maxContentSize=-1 in the alfresco-global.properties
Where can i Find global.propertis and change that setting ?
Tnx
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.
Great! Thanks so much, you.
Directions for everyone: [Disk]:\alfresco-community\tomcat\shared\classes\alfresco-global.properties
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.