2017-04-27 19 views
0

我有一个关于在Alfresco共享donwload文件大小限制的问题。 当我下载一个大文件时,我收到一条消息弹出“内容太大无法下载,最大下载大小为2GB,所选文件为2.9GB”。 是否可以将此文件大小限制更改为3GB或4GB? 我觉得消息在归档和download.js通过下面的代码是否可以更改Alfresco Share中的下载文件大小限制?

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(); 
} 
}, 

catpured而这个功能是由

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

您正在使用什么版本的Alfresco分享的? – Gagravarr

+0

我正在使用的版本是Community - 5.2.0(r128301-b8) – vincent

回答

1

被调用它不是直线前进,因为它应该,你可以看看这里:http://docs.alfresco.com/community/concepts/dev-extensions-share-module-dynamic-configuration.html

这是关于上传的,但什么是有趣的是<in-memory-limit>262144000</in-memory-limit>属性

优米飞行想从你的份额页面

http://localhost:8080/alfresco/webdav/Sites/swsdp/documentLibrary/content.doc

或wget的

的wget -r -np -nH -nv --Cut - 迪尔斯= 1 --user =下载使用FTP或WebDAV大文件--password = http://localhost:8080/alfresco/webdav/Sites/swsdp/documentLibrary/content.doc

+0

是的,这是为了上传。有没有类似的下载属性? – vincent

+0

不是我所知道的,这就是我提出webdav解决方案的原因。但我很确定下载的东西存在,但没有公开。我现在不能看这个,因为我还有其他的事情我必须做,但是你可能想打开露天战争,并检查不同的春季文件中存在什么。你可能会发现类似上传的东西。 – prignony

0

OK,我发现通过添加解 download.maxContentSize = -1 到alfresco-global.properties

相关问题