Foros de discusión

can not upload larger than 100MB file to "document library"

knox the Fang, modificado hace 15 años.

can not upload larger than 100MB file to "document library"

New Member Mensajes: 2 Fecha de incorporación: 29/08/08 Mensajes recientes
I am currently setup liferay 4.4.2 and run it good,
and the problem is , I change dl.file.max.size=0 in portal.properties, but still can not upload larger than 100MB file, 90MB is OK.
after do the search, I changed com.liferay.util.servlet.UploadServletRequest.max.size=83886080000, and copy it from webapps/ROOT/WEB-INF/lib/portal-impl.jar to webapps/ROOT/WEB-INF/classes/, after I startup liferay, I found I can not upload any size of files.
Can someone tell me, what is going on?
thumbnail
Minhchau Dang, modificado hace 15 años.

RE: can not upload larger than 100MB file to "document library"

Liferay Master Mensajes: 598 Fecha de incorporación: 22/10/07 Mensajes recientes
knox the Fang:
I changed com.liferay.util.servlet.UploadServletRequest.max.size=83886080000

I believe the problem you're seeing is because 83,886,080,000 (83 gigabytes) requires 38 bits to store, which exceeds the maximum possible size for a 32-bit signed integer. Try using a number that would actually fit into a 32-bit signed integer (2,147,483,647).
knox the Fang, modificado hace 15 años.

RE: can not upload larger than 100MB file to "document library"

New Member Mensajes: 2 Fecha de incorporación: 29/08/08 Mensajes recientes
Thank you Minhchau, it did works, I was made the max.size too big, did not consider about the 32bit system allow, thank you.
But, is there anyway to allow upload file larger than 2GB ?
thumbnail
steve rieger, modificado hace 15 años.

Re: [Liferay Forums][2. Using Liferay] RE: can not upload larger than100MB

Expert Mensajes: 436 Fecha de incorporación: 11/09/06 Mensajes recientes
Instead of a number for the size put *



--
Sent via Blackberry
I can be reached at 310-947-8565
thumbnail
steve rieger, modificado hace 15 años.

Re: [Liferay Forums][2. Using Liferay] RE: can not upload larger than100MB

Expert Mensajes: 436 Fecha de incorporación: 11/09/06 Mensajes recientes
That is if your db supports such large files.

(Are you storing files in a db ?)

--
Sent via Blackberry
I can be reached at 310-947-8565