留言板

RE: Uploading Doucument size increase.

RAVI RAJAMANI,修改在9 年前。

RE: Uploading Doucument size increase.

Regular Member 帖子: 123 加入日期: 14-12-7 最近的帖子
Hi,

I want to increase the document size but default shows only 3000k is maximum possible. I have attached image please give me answer to upload huge data.

Regards
Ravi
thumbnail
Jitendra Rajput,修改在9 年前。

RE: Uploading Doucument size increase.

Liferay Master 帖子: 875 加入日期: 11-1-7 最近的帖子
set dl.file.max.size in portal-ext file to increase document max size.

 #
    # Set the maximum file size and valid file extensions for documents. A value
    # of 0 for the maximum file size can be used to indicate unlimited file
    # size. However, the maximum file size allowed is set in the property
    # "com.liferay.portal.upload.UploadServletRequestImpl.max.size".
    #
    dl.file.max.size=0
    #dl.file.max.size=307200
    #dl.file.max.size=1024000
    #dl.file.max.size=3072000


Thank you,
Jitendra
thumbnail
Samuel Kong,修改在9 年前。

RE: Uploading Doucument size increase.

Liferay Legend 帖子: 1902 加入日期: 08-3-10 最近的帖子
You may also want to checkout your settings in:
Control Panel > Configuration > Server Administration > File Uploads

Make sure both the "Overall Maximum File Size" and the "Maximum File Size" for Documents are Media is larger than the file you want to upload.
RAVI RAJAMANI,修改在9 年前。

RE: Uploading Doucument size increase.

Regular Member 帖子: 123 加入日期: 14-12-7 最近的帖子
Hi,

Thank-you so much.

Regards
Ravi R
thumbnail
Marcus Hjortzén,修改在9 年前。

RE: Uploading Doucument size increase.

Junior Member 帖子: 45 加入日期: 12-5-2 最近的帖子
Also note that your application server may have a limit in place.
I believe Tomcat for instance has a limit of 100mb, so even if you change the value in the Liferay control panel to something larger than this, effectively the application server will kill the connection once it reaches 100mb.

Kind regards,
Marcus
Balu Bollam,修改在7 年前。

RE: Uploading Doucument size increase.

New Member 帖子: 21 加入日期: 16-10-23 最近的帖子
Hi

Marcus Hjortzén ,

I am using lifery 7.....

Iam uploading file using UploadPortletRequest in myportlet class,,[getting files from jsp inputype=file To my Action class)]
Initially iam able to upload only 100MB .......now i have increased upload size in serverAdministration-->Fileuploads
Overall Maximum Upload Request Size =1004857600 (means 1000MB is this correct please suggest)

Now iam only able to upload upto 500MB or below.....How i need to increase the size....Even i give 50004857600 iam getting null in my Action classs..


Please suggest i want to give maximum file upload size to 1.5GB ....for that what i need to give in -->Overall Maximum Upload Request Size
Here iam getting multiple files to my action class.....Each file can be around 1GB....
Here Is my code
public void actionRequest(ActionRequest request, ActionResponse response) throws IOException {
themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);
user=themeDisplay.getUser();
try {

logger.info("Test DATA::::" + request.getParameter("fname"));

UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(request);
Map<String, FileItem[]> files= uploadRequest.getMultipartParameterMap();

for (Entry<String, FileItem[]> file2 : files.entrySet()) {
FileItem item[] =file2.getValue();
for (FileItem fileItem : item) {
String sourceFileName = fileItem.getFileName();
logger.info("###CHANGED#####source file name -" + sourceFileName);
File file = fileItem.getStoreLocation();
logger.info(file.getAbsolutePath());
logger.info("DONE");
}

}


Here The file is uploading to tomcat/tmp......once the restriction works.....I will upload To Bookmarks...


Please help me out how much i need to set upload limit for getting 1.5GB file size allowed