Announcement Announcement Module
Collapse
No announcement yet.
CommonsMultipartResolver question Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • CommonsMultipartResolver question

    I'm implementing file upload as described in the 12.8 of the Spring Reference. How do you specify the upload directory in the servlet.xml ?
    eg
    <bean id="multipartResolver"
    class="org.springframework.web.multipart.commons.C ommonsMultipartResolver">
    <!-- the maximum file size in bytes -->
    <property name="maxUploadSize">
    <value>10000000</value>
    </property>
    <!-- maximum allowed size (in bytes) before uploads are written to disk -->
    <property name="maxInMemorySize">
    <value>100000</value>
    </property>
    <!-- Set the temporary directory where uploaded files get stored. -->
    <property name="uploadTempDir">
    what goes in here then ????
    </property>
    </bean>

  • #2
    Jakarta Commons FileUpload uses this resource internally / temporarily to store files that are larger than the configured size threshold. By default, Spring uses the Servlet container temporary path to FileUpload.
    HTH

    Comment


    • #3
      Thanks

      Comment

      Working...
      X