Uploading large JPG image files > 2GB #3172
-
Hi, I want my application to be able to upload large files of several gigabytes. I am therefore testing the upload of image files of 2 GB or more, of different types (JPG, PNG, TIFF, BMP).
One hypothesis could be that it is the calculation of the preview that is problematic.
or using the However, the problem still persists. To conclude, regardless of the source of the problem, the fileUpload component have problems for JPG and PNG formats, but not for TIFF and BMP formats. Moreover, it seems that the JPG and PNG formats are previewed by the component, which is not the case for TIFF and BMP formats. (The upload also works with PDF or BIN files of 2GB or more, which are not previewed formats) Thank you for your time! In order to reproduce the problem, you will find the following reproducer
In order to have sample files, you will need to execute the main method of
On Windows, these files will be located by default in C:\workspace but you can modify the path as you want. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Please provide an executable example using the PrimeFaces Test project. It is the only way developers can debug your problem to help. |
Beta Was this translation helpful? Give feedback.
-
Hi ! |
Beta Was this translation helpful? Give feedback.
-
Hi, After selecting the file, nothing else is displayed. So we cannot click on the upload button that is supposed to appear after selection, to upload the selected file. The js code removes the entire display that is supposed to appear (prerendered image + file name + file size + loading bar + upload and cancel buttons) but we would only like to delete the prerendered image. |
Beta Was this translation helpful? Give feedback.
ok try this in
/src/main/webapp/resources/test.js
add this code.https://github.com/primefaces/primefaces-test/blob/master/src/main/webapp/resources/test.js
It removes trying the preview entirely...