I would like to save the files downloaded from the form to a specific folder in my Spring 3 application. I am new to this, don't know where to start. Files must be in java format.
Here you can define the absolute path to the temporary directory using the System Properties and Spring Expression Language :
<!-- package shortened for readability --> <bean id="multipartResolver" class="org.springframework....CommonsMultipartResolver"> <property name="uploadTempDir" value="#{ systemProperties['java.io.tmpdir'] }/yourwebapp/upload"/> </bean>
Reference:
java.io.tmpdir
Use Spring FileUpload support, it is fully documented , with examples.
Source: https://habr.com/ru/post/1777879/More articles:What is easy to implement jQuery multi-image slider? - jqueryCoreData - выберите конкретную запись от одного до многих отношений - objective-cWhy are parameter type boundaries ignored when using existential types in Scala? - scalaSecuring the connection string in Windows Azure and web.config - web-configHow to cancel keyboard capture using C # to develop key changer software - c #org.apache.cxf.BusException: No DestinationFactory found for namespace http://schemas.xmlsoap.org/soap/http/ - jbossHow to write a regex expression labeled "And without spaces"? - javascriptHow to prevent a link to the class library. NET DLL - referenceHow to use condition in Delphi breakpoint properties - debuggingСистема управления версиями для распределенной команды разработчиков - version-controlAll Articles