Fix use of KB and MB in Multipart documentation
Closes gh-7364
This commit is contained in:
parent
fce17ca6d9
commit
249ed899a6
|
@ -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 {
|
||||||
* 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;
|
||||||
* 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("10Mb");
|
* factory.setMaxFileSize("10MB");
|
||||||
* factory.setMaxRequestSize("100Kb");
|
* factory.setMaxRequestSize("100KB");
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
|
|
Loading…
Reference in New Issue