cannot find uploaded files with <p:uploadFile

UI Components for JSF
Post Reply
xuzhike
Posts: 5
Joined: 24 Oct 2010, 04:31

14 Dec 2011, 17:41

Hi, PF team,

I built PF showcase from source with PF3.0 RC1 and deploy it in Tomcat7.0.
1: I try the fileUploadSingle demo and uploaded some files, the prompt message said they are successful to uploaded.
But I cannot find out them in "java.io.tmpdir" = D:\systemFolder\Windows\TEMP

2: I updated the web.xml basing on user guide as following:
<filter>
<filter-name>PrimeFaces FileUpload Filter</filter-name>
<filter-class>
org.primefaces.webapp.filter.FileUploadFilter
</filter-class>
<init-param>
<param-name>thresholdSize</param-name>
<param-value>51200</param-value>
</init-param>
<init-param>
<param-name>uploadDirectory</param-name>
<param-value>D:/TomcatServer/JSF2-7.0.22/webapps/upload</param-value>
</init-param>
</filter>

<filter-mapping>
<filter-name>PrimeFaces FileUpload Filter</filter-name>
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>


after restarted, I tried again and hoped those uploaded can be found in D:/TomcatServer/JSF2-7.0.22/webapps/upload, but still NO. why?

Please help!!!!!

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 46 guests