Fórum

RE: Uploading Doucument size increase.

RAVI RAJAMANI, modificado 9 Anos atrás.

RE: Uploading Doucument size increase.

Regular Member Postagens: 123 Data de Entrada: 07/12/14 Postagens Recentes
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, modificado 9 Anos atrás.

RE: Uploading Doucument size increase.

Liferay Master Postagens: 875 Data de Entrada: 07/01/11 Postagens Recentes
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, modificado 9 Anos atrás.

RE: Uploading Doucument size increase.

Liferay Legend Postagens: 1902 Data de Entrada: 10/03/08 Postagens Recentes
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, modificado 9 Anos atrás.

RE: Uploading Doucument size increase.

Regular Member Postagens: 123 Data de Entrada: 07/12/14 Postagens Recentes
Hi,

Thank-you so much.

Regards
Ravi R
thumbnail
Marcus Hjortzén, modificado 9 Anos atrás.

RE: Uploading Doucument size increase.

Junior Member Postagens: 45 Data de Entrada: 02/05/12 Postagens Recentes
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, modificado 7 Anos atrás.

RE: Uploading Doucument size increase.

New Member Postagens: 21 Data de Entrada: 23/10/16 Postagens Recentes
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