From 78f3a3cb11536b5305555c70c867c9daf7c355ad Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Mon, 2 Feb 2015 17:29:39 -0500 Subject: [PATCH] Update javadoc for MultipartFile.transferTo Issue: SPR-12650 --- .../org/springframework/web/multipart/MultipartFile.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spring-web/src/main/java/org/springframework/web/multipart/MultipartFile.java b/spring-web/src/main/java/org/springframework/web/multipart/MultipartFile.java index 86f73591a4..4d4a04503e 100644 --- a/spring-web/src/main/java/org/springframework/web/multipart/MultipartFile.java +++ b/spring-web/src/main/java/org/springframework/web/multipart/MultipartFile.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -94,6 +94,9 @@ public interface MultipartFile { *

If the file has been moved in the filesystem, this operation cannot * be invoked again. Therefore, call this method just once to be able to * work with any storage mechanism. + *

Note: when using Servlet 3.0 multipart support you + * need to configure the location relative to which files will be copied + * as explained in {@link javax.servlet.http.Part#write}. * @param dest the destination file * @throws IOException in case of reading or writing errors * @throws IllegalStateException if the file has already been moved