I am trying to use fileUpload component. As I read from primefaces user guide, I have to configure the fileUpload filter.
The PrimeFaces user guide (page 14) lists the required dependencies for p:fileUpload
:
Seems that you are missing the first dependency.
You can either download and place those files into /WEB-INF/lib
or - if your project is a maven project - add the following dependencies to your pom.xml
, <dependencies>
section:
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-io</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.2.2</version>
</dependency>
Versions may differ, currently I have this in my pom.xml