I'm having some issues with fileUpload
. It's not firing the fileUploadListener
when the file is > 2 Mb.
The component:
<p:fileUpload id="upload" required="true"
fileUploadListener="#{myBean.handleFileUpload}"
fileLimit="1"
requiredMessage="A file is required"
fileLimitMessage="One file only"
invalidFileMessage="Invalid file"
cancelLabel="Cancel" label="Choose"
allowTypes="/(\.|\/)(gif|jpe?g|png)$/" />
Enviroment: JSF 2.2.3, Primefaces 4.0, Tomcat 7
Might it be some "filter" configuration problem?
@EDIT: More info. Same problem with mode="simple"
.