我有一个关于Alfresco Share中的donwload文件大小限制的问题。 当我下载一个大文件时,我收到一条消息弹出"内容太大而无法下载。最大下载大小为2GB,所选文件为2.9GB。" 是否可以将此文件大小限制更改为3GB或4GB? 我认为该消息是通过以下代码
在archive-and-download.js中捕获的 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();
}
},
此功能由
调用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
});
}
},
答案 0 :(得分:1)
它不是那么直截了当,你可以看看这里:http://docs.alfresco.com/community/concepts/dev-extensions-share-module-dynamic-configuration.html
这是关于上传的,但有趣的是<in-memory-limit>262144000</in-memory-limit>
属性
您可能希望从共享页面使用ftp或webdav下载大文件
http://localhost:8080/alfresco/webdav/Sites/swsdp/documentLibrary/content.doc
或与wget
wget -r -nH -np -nv -cut-dirs = 1 --user = --password = http://localhost:8080/alfresco/webdav/Sites/swsdp/documentLibrary/content.doc
答案 1 :(得分:0)
好的,我通过添加找到了解决方案 download.maxContentSize = -1 进入alfresco-global.properties