Foros de discusión

RE: Uploading Doucument size increase.

RAVI RAJAMANI, modificado hace 9 años.

RE: Uploading Doucument size increase.

Regular Member Mensajes: 123 Fecha de incorporación: 7/12/14 Mensajes recientes
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

Archivos adjuntos:

thumbnail
Jitendra Rajput, modificado hace 9 años.

RE: Uploading Doucument size increase.

Liferay Master Mensajes: 875 Fecha de incorporación: 7/01/11 Mensajes recientes
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 hace 9 años.

RE: Uploading Doucument size increase.

Liferay Legend Mensajes: 1902 Fecha de incorporación: 10/03/08 Mensajes recientes
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 hace 9 años.

RE: Uploading Doucument size increase.

Regular Member Mensajes: 123 Fecha de incorporación: 7/12/14 Mensajes recientes
Hi,

Thank-you so much.

Regards
Ravi R
thumbnail
Marcus Hjortzén, modificado hace 9 años.

RE: Uploading Doucument size increase.

Junior Member Mensajes: 45 Fecha de incorporación: 2/05/12 Mensajes recientes
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 hace 7 años.

RE: Uploading Doucument size increase.

New Member Mensajes: 21 Fecha de incorporación: 23/10/16 Mensajes recientes
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