Foren

RE: Need help to upload large file in LifeRay Document Library portlet

Himanshu Bhargav, geändert vor 14 Jahren.

Need help to upload large file in LifeRay Document Library portlet

New Member Beiträge: 12 Beitrittsdatum: 18.03.10 Neueste Beiträge
Hi ,

Could anyone please help me out to setup the Document Library plugin to set the maximum file size. Currently we can upload upto 100 Mb only. Please provide the steps how to upload upto 500 MB.

Looking for your response.


Many Thanks in advance.

Himanshu Bhargav
thumbnail
Sandeep Nair, geändert vor 14 Jahren.

RE: Need help to upload large file in LifeRay Document Library portlet

Liferay Legend Beiträge: 1744 Beitrittsdatum: 06.11.08 Neueste Beiträge
Hi himanshu,

Try adding following property in portal-ext.properties

   #
    # Set the maximum file size. Default is 1024 * 1024 * 100.
    #
    com.liferay.portal.upload.UploadServletRequestImpl.max.size=104857600


Change the value to whatever you need.

Regards,
Sandeep
Himanshu Bhargav, geändert vor 14 Jahren.

RE: Need help to upload large file in LifeRay Document Library portlet

New Member Beiträge: 12 Beitrittsdatum: 18.03.10 Neueste Beiträge
I have tried this but stil could not able to uploaod more than 100 MB file. Could any one help me out to fix this problem.

Thanks

Himanshu Bhargav
thumbnail
Samuel Kong, geändert vor 14 Jahren.

RE: Need help to upload large file in LifeRay Document Library portlet

Liferay Legend Beiträge: 1902 Beitrittsdatum: 10.03.08 Neueste Beiträge
Don't forget to also set dl.file.max

    #
    # Set the maximum file size 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=307200
    #dl.file.max.size=1024000
    dl.file.max.size=3072000
Himanshu Bhargav, geändert vor 14 Jahren.

RE: Need help to upload large file in LifeRay Document Library portlet

New Member Beiträge: 12 Beitrittsdatum: 18.03.10 Neueste Beiträge
Nope, Still not ablt to upload the file.

Please give me the detailed Step by Setp configuration so setup the maximum size upto 500 MB.



Thanks
Himanshu Bhargav
thumbnail
Sandeep Nair, geändert vor 14 Jahren.

RE: Need help to upload large file in LifeRay Document Library portlet

Liferay Legend Beiträge: 1744 Beitrittsdatum: 06.11.08 Neueste Beiträge
Add the following values in portal-ext.properties and restart the server.

com.liferay.portal.upload.UploadServletRequestImpl.max.size=524288000
dl.file.max.size=0

That should do it. While testing if possible debug the following line in UploadServletRequestImpl. Check what is the value coming there.

servletFileUpload.setSizeMax(DEFAULT_SIZE_MAX);


Regards,
Sandeep
Himanshu Bhargav, geändert vor 14 Jahren.

RE: Need help to upload large file in LifeRay Document Library portlet

New Member Beiträge: 12 Beitrittsdatum: 18.03.10 Neueste Beiträge
Hi Sandeep,

I dont have any debug environment.I have just added Document Libray into my portal and set up the maximum size in the administration sectoin for document upload.

Please provide me all the necessary steps to configure the Document Library to upload upto 500 Mb file.



Thanks
Himanshu
thumbnail
Sandeep Nair, geändert vor 14 Jahren.

RE: Need help to upload large file in LifeRay Document Library portlet

Liferay Legend Beiträge: 1744 Beitrittsdatum: 06.11.08 Neueste Beiträge
Did you try the above properties

com.liferay.portal.upload.UploadServletRequestImpl.max.size=524288000
dl.file.max.size=0


Thats the only thing to do that i am aware of, please correct me if i am wrong Samuel. Try uploading files greater than 100 MB and less than 500MB. Are u getting any error in log. Do u have enough space to upload the content?

Regards,
Sandeep
Himanshu Bhargav, geändert vor 14 Jahren.

RE: Need help to upload large file in LifeRay Document Library portlet

New Member Beiträge: 12 Beitrittsdatum: 18.03.10 Neueste Beiträge
Thanks dear

It Worksemoticon
Himanshu Bhargav, geändert vor 14 Jahren.

RE: Need help to upload large file in LifeRay Document Library portlet

New Member Beiträge: 12 Beitrittsdatum: 18.03.10 Neueste Beiträge
Hi Sandeep,

It works for 135 MB but could you able to do for more than 200 MB. I have already setup the Session time out in the properties.

it just start uploading and stuck somwhere. any idea??

Thanks

Himanshu
thumbnail
Sandeep Nair, geändert vor 14 Jahren.

RE: Need help to upload large file in LifeRay Document Library portlet

Liferay Legend Beiträge: 1744 Beitrittsdatum: 06.11.08 Neueste Beiträge
Hi,

I am not sure mate. 100MB is a huge data to upload. Any error you get in the console?

Regards,
Sandeep
Himanshu Bhargav, geändert vor 14 Jahren.

RE: Need help to upload large file in LifeRay Document Library portlet

New Member Beiträge: 12 Beitrittsdatum: 18.03.10 Neueste Beiträge
135 Mb has been uploaded smoothly but when i try to upload 250 MB it just stuck..

Himanshu Bhargav
thumbnail
Riccardo Rotondo, geändert vor 13 Jahren.

RE: Need help to upload large file in LifeRay Document Library portlet

Junior Member Beiträge: 29 Beitrittsdatum: 11.06.10 Neueste Beiträge
Hi everybody, I'd like to upload very huge file.... but reading your experiences should be impossible. It's not possible to copy the file on the machine an then create the link in the library portlet manually (creating the right entry in the db) ??? Does anybody try???
thumbnail
Riccardo Rotondo, geändert vor 13 Jahren.

RE: Need help to upload large file in LifeRay Document Library portlet

Junior Member Beiträge: 29 Beitrittsdatum: 11.06.10 Neueste Beiträge
Sandeep Nair:
Did you try the above properties

com.liferay.portal.upload.UploadServletRequestImpl.max.size=524288000
dl.file.max.size=0


Regards,
Sandeep


Thank you. I made this changes and it works for me. With the right value I'm able to upload file up to 2 GB (what i needed).
For those who have problem I think they should modifiy the size of the java virtual machine. In my portal is 4 GB

Cheers