From 205f6d92e7d685347968871ddbd4056dd4aa5c68 Mon Sep 17 00:00:00 2001 From: JamieFarrelly Date: Sat, 4 Jul 2015 21:15:31 +0100 Subject: [PATCH] Clarify MultipartConfigFactory javadoc Update MultipartConfigFactory javadoc to make it clear that you are passing in the size in bytes. Fixes gh-3414 --- .../boot/context/embedded/MultipartConfigFactory.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spring-boot/src/main/java/org/springframework/boot/context/embedded/MultipartConfigFactory.java b/spring-boot/src/main/java/org/springframework/boot/context/embedded/MultipartConfigFactory.java index b7084019c3e..328367944b8 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/embedded/MultipartConfigFactory.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/embedded/MultipartConfigFactory.java @@ -22,8 +22,8 @@ import org.springframework.util.Assert; /** * Factory that can be used to create a {@link MultipartConfigElement}. Size values can be - * set using traditional {@literal long} values or using more readable {@literal String} - * variants that accept KB or MB suffixes, for example: + * set using traditional {@literal long} values which are set in bytes or using more + * readable {@literal String} variants that accept KB or MB suffixes, for example: * *
  * factory.setMaxFileSize("10Mb");
@@ -51,7 +51,7 @@ public class MultipartConfigFactory {
 	}
 
 	/**
-	 * Sets the maximum size allowed for uploaded files.
+	 * Sets the maximum size in bytes allowed for uploaded files.
 	 * @param maxFileSize the maximum file size
 	 * @see #setMaxFileSize(String)
 	 */
@@ -70,7 +70,7 @@ public class MultipartConfigFactory {
 	}
 
 	/**
-	 * Sets the maximum size allowed for multipart/form-data requests.
+	 * Sets the maximum size allowed in bytes for multipart/form-data requests.
 	 * @param maxRequestSize the maximum request size
 	 * @see #setMaxRequestSize(String)
 	 */
@@ -89,7 +89,7 @@ public class MultipartConfigFactory {
 	}
 
 	/**
-	 * Sets the size threshold after which files will be written to disk.
+	 * Sets the size threshold in bytes after which files will be written to disk.
 	 * @param fileSizeThreshold the file size threshold
 	 * @see #setFileSizeThreshold(String)
 	 */