The P-fileUpload attribute "accept" will take multiple entries, but any spaces between them will cause failures.
Example: FAILS due to extra white-space after the commas in the values for "accept"
Code: Select all
<p-fileUpload
name="myfile[]"
accept=".csv, .xml, .tsv"
showUploadButton="false"
showCancelButton="false"
url="./upload.php"></p-fileUpload>
Code: Select all
<p-fileUpload
name="myfile[]"
accept=".csv,.xml,.tsv"
showUploadButton="false"
showCancelButton="false"
url="./upload.php"></p-fileUpload>