I have the same code in another project with PrimeFaces 11.0.3 and the Ultima 4.0.1 theme that works fine.
Code: Select all
<div class="card">
<h:form>
<p:fileUpload listener="#{fileUploadView.handleFileUpload}" mode="advanced"
update="messages" auto="true" sizeLimit="100000" allowTypes="/(\.|\/)(gif|jpe?g|png)$/"/>
<p:growl id="messages" showDetail="true"/>
</h:form>
</div>
Code: Select all
public void handleFileUpload(FileUploadEvent event) {
FacesMessage message = new FacesMessage("Successful", event.getFile().getFileName() + " is uploaded.");
FacesContext.getCurrentInstance().addMessage(null, message);
}
https://www.loom.com/share/64887af0223e ... 537a6c4556
See that it opens and it just doesn't give the message as success with the file name, I go to the log and there's nothing