I am using PrimeFaces 8.0.6. I have two pages that contain a FileUpload component. One is a rather simple form backed by a session-scoped bean that works fine whether the user uploads a file by either choosing it with the browse button or dragging and dropping a file on the component. The other is a more complex form where FileUpload is contained in a Tab on a TabView component, backed by a conversation-scoped bean. That one also works fine when the user drags and drops a file to be uploaded onto the FileUpload component. However, if they try to use the browse button to choose a file to upload, the File Upload dialog opens so they can choose a file to upload, but nothing happens when they press Open other than the dialog closes. There is no error message in the browser or in the server log. Nothing. It's as if they hit the Cancel button on the File Upload dialog rather than Open.
I looked through the change logs for later 8.x versions, but didn't see any bug fixes related to FileUpload. Does anyone know if this has been fixed in any version of PrimeFaces 8 later than 8.0.6? Or in 10? (FileUpload worked fine in 7.0.12.) Here is my FileUpload code:
Code: Select all
<p:fileUpload id="attachupload" mode="advanced" auto="true" immediate="true"
listener="#{quoteEditBean.uploadAttachment}" label="#{msgs.AttachmentChooseFileButtonLabel}"
disabled="#{empty quoteEditBean.profileIdxToUploadAttachment or empty quoteEditBean.attachmentToUploadType}"
sizeLimit="10485760" update="qtv:addatttree qtv:prftv" />
Thank you.