Commit 9423b983 authored by Stephane Nicoll's avatar Stephane Nicoll

Merge branch '1.4.x' into 1.5.x

parents 16571202 249ed899
...@@ -39,7 +39,7 @@ import org.springframework.util.StringUtils; ...@@ -39,7 +39,7 @@ import org.springframework.util.StringUtils;
* <p> * <p>
* These properties are ultimately passed through {@link MultipartConfigFactory} which * These properties are ultimately passed through {@link MultipartConfigFactory} which
* means you may specify the values using {@literal long} values or using more readable * means you may specify the values using {@literal long} values or using more readable
* {@literal String} variants that accept {@literal Kb} or {@literal Mb} suffixes. * {@literal String} variants that accept {@literal KB} or {@literal MB} suffixes.
* *
* @author Josh Long * @author Josh Long
* @author Toshiaki Maki * @author Toshiaki Maki
...@@ -62,13 +62,13 @@ public class MultipartProperties { ...@@ -62,13 +62,13 @@ public class MultipartProperties {
* Max file size. Values can use the suffixed "MB" or "KB" to indicate a Megabyte or * Max file size. Values can use the suffixed "MB" or "KB" to indicate a Megabyte or
* Kilobyte size. * Kilobyte size.
*/ */
private String maxFileSize = "1Mb"; private String maxFileSize = "1MB";
/** /**
* Max request size. Values can use the suffixed "MB" or "KB" to indicate a Megabyte * Max request size. Values can use the suffixed "MB" or "KB" to indicate a Megabyte
* or Kilobyte size. * or Kilobyte size.
*/ */
private String maxRequestSize = "10Mb"; private String maxRequestSize = "10MB";
/** /**
* Threshold after which files will be written to disk. Values can use the suffixed * Threshold after which files will be written to disk. Values can use the suffixed
......
...@@ -26,8 +26,8 @@ import org.springframework.util.Assert; ...@@ -26,8 +26,8 @@ import org.springframework.util.Assert;
* readable {@literal String} variants that accept KB or MB suffixes, for example: * readable {@literal String} variants that accept KB or MB suffixes, for example:
* *
* <pre class="code"> * <pre class="code">
* factory.setMaxFileSize(&quot;10Mb&quot;); * factory.setMaxFileSize(&quot;10MB&quot;);
* factory.setMaxRequestSize(&quot;100Kb&quot;); * factory.setMaxRequestSize(&quot;100KB&quot;);
* </pre> * </pre>
* *
* @author Phillip Webb * @author Phillip Webb
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment