Reply To: File upload component under prettyfaces mapped url doesn't upload anything

Splash Forums PrettyFaces Users File upload component under prettyfaces mapped url doesn't upload anything Reply To: File upload component under prettyfaces mapped url doesn't upload anything

#26398

giates
Participant

Hi Christian,

many thanks for your response.

I’ve found a solution, if I insert commons file upload dependency to my project and set:

<context-param>
    <param-name>primefaces.UPLOADER</param-name>
    <param-value>commons</param-value>
  </context-param>
  <filter>
    <filter-name>PrimeFaces FileUpload Filter</filter-name>
    <filter-class>org.primefaces.webapp.filter.FileUploadFilter</filter-class>
  </filter>
  <filter-mapping>
    <filter-name>PrimeFaces FileUpload Filter</filter-name>
    <servlet-name>Faces Servlet</servlet-name> 
    <dispatcher>REQUEST</dispatcher>              
    <dispatcher>FORWARD</dispatcher>              
  </filter-mapping>

into web.xml I can correctly upload the files using Rewrite module on Glassfish 4.1

Probably using commons fileupload the request.getParameter of Rewrite module is working good…