title: How to validate file size and type in <p:fileUpload mode="simple">?
body: <p>In PrimeFaces 3.4, the <code>&lt;p:fileUpload&gt;</code> attributes <code>sizeLimit</code> and <code>allowTypes</code> doesn't work in case of <code>mode="simple"</code>. How can I validate the file size and allowable types?</p>