1 Reply Latest reply on Mar 29, 2012 4:55 AM by Javier Gonzales

    FileUpload Temporary Location

    Javier Gonzales Newbie

      Hi,

       

      So I am using Richfaces 4 and FileUpload component seems to be working fine but I would like to know the temporary location of where it is storing the files. Although I am specifying a temp location I am not seeing the files being placed there. What am I doing wrong?

       

      This is my web.xml.

       

      <?xml version="1.0"?>

      <web-app version="2.5"

           xmlns="http://java.sun.com/xml/ns/javaee"

          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

          xsi:schemaLocation="http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

         

        <servlet>

            <servlet-name>Faces Servlet</servlet-name>

            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

            <load-on-startup>1</load-on-startup>

        </servlet>

        <servlet-mapping>

            <servlet-name>Faces Servlet</servlet-name>

            <url-pattern>/faces/*</url-pattern>

        </servlet-mapping>

        <servlet-mapping>

              <servlet-name>Faces Servlet</servlet-name>

              <url-pattern>*.xhtml</url-pattern>

         </servlet-mapping>


      <context-param>

              <param-name>org.richfaces.fileUpload.maxRequestSize</param-name>

              <param-value>10000000</param-value>

          </context-param>


      <context-param>

              <param-name>org.richfaces.fileUpload.createTempFiles</param-name>

              <param-value>true</param-value>

          </context-param>


        <context-param>

              <param-name>org.richfaces.fileUpload.tempFilesDirectory</param-name>

              <param-value>C:\\</param-value>

      </context-param>





      </web-app>