Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Multiple temp files in Liferay 6.2 Tomcat 7.0.62
When I try to upload big files with primefaces 6 (p:fileUpload), Liferay creates 3 temp files:
1 upload_XXX file is deleting well2 20200320095340390GUJGUWDN file is never deleted.3 20200320095340390GUJGUWDN folder with files inside is never deletedAnother problem is that the fileUpload is too slow, and takes 30min in trigger the bean method when I try to upload 2GB file.
1 upload_XXX file is deleting well2 20200320095340390GUJGUWDN file is never deleted.3 20200320095340390GUJGUWDN folder with files inside is never deletedAnother problem is that the fileUpload is too slow, and takes 30min in trigger the bean method when I try to upload 2GB file.
Hi Jesus,
When you get an opportunity, please create a new PrimeFaces portlet project using the Maven archetype:generate command available at the following page from liferayfaces.org:
https://faces.liferay.dev/home/-/archetype-portlet/liferay-portal-version/6.2/jsf-version/2.2/component-suite/primefaces/build-tool/maven
This will provide you with the ability to create a Short, Self Contained, Correct (Compilable), Example (SSCCE) for a PrimeFaces portlet project compatible with Liferay 6.2.
Once you get it deployed and working, add code for the p:fileUpload component and associated backing bean code similar to what we have in the PrimeFaces Applicant demo.
If you are able to reproduce the problem with the SSCCE, then upload the source as a ZIP to this project and we will try to reproduce it locally.
Kind Regards,
Neil
When you get an opportunity, please create a new PrimeFaces portlet project using the Maven archetype:generate command available at the following page from liferayfaces.org:
https://faces.liferay.dev/home/-/archetype-portlet/liferay-portal-version/6.2/jsf-version/2.2/component-suite/primefaces/build-tool/maven
This will provide you with the ability to create a Short, Self Contained, Correct (Compilable), Example (SSCCE) for a PrimeFaces portlet project compatible with Liferay 6.2.
Once you get it deployed and working, add code for the p:fileUpload component and associated backing bean code similar to what we have in the PrimeFaces Applicant demo.
If you are able to reproduce the problem with the SSCCE, then upload the source as a ZIP to this project and we will try to reproduce it locally.
Kind Regards,
Neil
I saw that the number of temp files created depends on the portal-ext.properties config. We have multiple instances of liferay for testing, the instance deployed in my localhost, works fine with +1GB files, but in the preproduction Liferay Instance, the bean is never handled using the same portal-ext config. Can you explain which portal-ext config is required for upload big files (5GB for example) for de 4.1.3 bridge version? I have the parameter "com.liferay.faces.util.uploadedFileMaxSize", "10368709120" on my portlet also.
Since you are using Liferay 6.2, then I recommend that you look at the default values of file upload related settings in the portal.properties file.
Also, I recommend that you review the default file upload settings for liferay-faces-util (used by the bridge).
Also, there is an older blog post titled UploadPortletRequest and file size limits that refers to Liferay 6.2.
Finally, please upgrade to the latest version of Liferay Faces artifacts that we have available for Liferay 6.2:
- com.liferay.faces:com.liferay.faces.bridge.ext:3.0.1
- com.liferay.faces:com.liferay.faces.util:3.3.0
- com.liferay.faces:com.liferay.faces.bridge.impl:4.1.4
- com.liferay.faces:com.liferay.faces.bridge.api:4.1.0
Also, I recommend that you review the default file upload settings for liferay-faces-util (used by the bridge).
Also, there is an older blog post titled UploadPortletRequest and file size limits that refers to Liferay 6.2.
Finally, please upgrade to the latest version of Liferay Faces artifacts that we have available for Liferay 6.2:
- com.liferay.faces:com.liferay.faces.bridge.ext:3.0.1
- com.liferay.faces:com.liferay.faces.util:3.3.0
- com.liferay.faces:com.liferay.faces.bridge.impl:4.1.4
- com.liferay.faces:com.liferay.faces.bridge.api:4.1.0
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™