I am using JSF 2.2 so I haven't configured any special jar files or settings and using advanced mode. This works sometimes but then it stops working for awhile until it suddenly starts working sometimes again, just by me stopping and starting Jetty...
The code I am using, looks like this:
Code: Select all
<h:form id="mainform" enctype="multipart/form-data" >
<p:growl id="globalMessages" sticky="false" globalOnly="false"/>
<p:fileUpload id="filopplaster" fileUploadListener="#{importController.fileUploadListener}" mode="advanced" dragDropSupport="true" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
update="globalMessages" sizeLimit="100000" fileLimit="1" allowTypes="/(\.|\/)(xlsx)$/" uploadLabel="Last opp" cancelLabel="Avbryt" label="Velg" />
<p:message for="filopplaster" />
</h:form>
What am I missing?
Regards,
BTJ