【发布时间】:2017-04-27 02:12:13
【问题描述】:
我有一个关于 Alfresco Share 中下载文件大小限制的问题。 下载大文件时,弹出消息“内容太大,无法下载。最大下载大小为 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
});
}
},
【问题讨论】:
-
您使用的是什么版本的 Alfresco Share?
-
我使用的版本是 Community - 5.2.0 (r128301-b8)