Uploading large JPG image files > 2GB #3172
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.
-
Hi,
I want my application to be able to upload large files of several gigabytes.
The goal is not to preview them, but just to upload them successfully.
I use the fileUpload component in "advanced" mode to upload files.
I am therefore testing the upload of image files of 2 GB or more, of different types (JPG, PNG, TIFF, BMP).
However, the JPG and PNG types have a problem, the other types are uploaded correctly.
Indeed, for the JPG and PNG formats, the chrome browser redirects me to a page with the STATUS_BREAKPOINT code.
Regarding this status, we can find the following description :
One hypothesis could be that it is the calculation of the preview that is problematic.
So I masked its display with CSS:
or using the
previewWidth="0"
attribute.However, the problem still persists.
In addition, there is no other attribute on the fileUpload component that allows you to deactivate the preview, when using "advanced" mode.
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.
All reactions