When the file says that the size of 100 MB downloaded from the browser, Spring will store the whole data in memory or temporarily store it on disk. After going through the Spring doc, I know how to set up a temporary directory, but I want to know what will happen if I don't mention it.
Having the following declaration:
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"/>
Bean:
public class FileHolder { private MultipartFile file; public void setFile(MultipartFile file) { this.file = file; } public MultipartFile getFile() { return file; } }
Will the file object in the bean above contain 100 MB of data?
java spring-mvc apache-commons-fileupload
novice
source share