【问题标题】:Is it possible to change the download file size limit in Alfresco Share?是否可以更改 Alfresco Share 中的下载文件大小限制?
【发布时间】: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)

标签: alfresco alfresco-share


【解决方案1】:

好的,我通过添加找到了解决方案 下载.maxContentSize=-1 进入 alfresco-global.properties

【讨论】:

    【解决方案2】:

    这并不像应有的那么简单,您可以在这里查看: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

    【讨论】:

    • 是的,用于上传。有没有类似的属性可供下载?
    • 我不知道,这就是我提出 webdav 解决方案的原因。但我很确定下载存在一些东西,它只是没有暴露。我现在不能看这个,因为我还有其他事情要做,但你可能想打开露天战争并检查不同的 spring 文件中存在什么。您可能会发现类似于上传的内容。
    猜你喜欢
    • 2022-01-05
    • 1970-01-01
    • 2017-02-28
    • 1970-01-01
    • 2013-04-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多