I have set the multiple to false but dint work for me.
any help is highly appreciated.
Code: Select all
<p:fileUpload id="upload" ajax="false" fileUploadListener="#{filecontroller.handleupload}"
mode="advanced"
update="messages"
label="Choose"
multiple="false"
sizeLimit="100000"
allowTypes="/(\.|\/)(xls|xlsx|csv)$/">
</p:fileUpload>