Skip to content

Commit 49c21a0

Browse files
committed
Update javadoc for MultipartFile.transferTo
Issue: SPR-12650
1 parent d9d8a79 commit 49c21a0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spring-web/src/main/java/org/springframework/web/multipart/MultipartFile.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -94,6 +94,9 @@ public interface MultipartFile {
9494
* <p>If the file has been moved in the filesystem, this operation cannot
9595
* be invoked again. Therefore, call this method just once to be able to
9696
* work with any storage mechanism.
97+
* <p><strong>Note:</strong> when using Servlet 3.0 multipart support you
98+
* need to configure the location relative to which files will be copied
99+
* as explained in {@link javax.servlet.http.Part#write}.
97100
* @param dest the destination file
98101
* @throws IOException in case of reading or writing errors
99102
* @throws IllegalStateException if the file has already been moved

0 commit comments

Comments
 (0)