File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
spring-web/src/main/java/org/springframework Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,9 @@ public interface FilePart extends Part {
36
36
* <p><strong>Note:</strong> Please keep in mind this filename is supplied
37
37
* by the client and should not be used blindly. In addition to not using
38
38
* the directory portion, the file name could also contain characters such
39
- * as ".." and others that can be used maliciously.
39
+ * as ".." and others that can be used maliciously. It is recommended to not
40
+ * use this filename directly. Preferably generate a unique one and save
41
+ * this one one somewhere for reference, if necessary.
40
42
* @return the original filename, or the empty String if no file has been chosen
41
43
* in the multipart form, or {@code null} if not defined or not available
42
44
* @see <a href="https://tools.ietf.org/html/rfc7578#section-4.2">RFC 7578, Section 4.2</a>
Original file line number Diff line number Diff line change @@ -56,7 +56,9 @@ public interface MultipartFile extends InputStreamSource {
56
56
* <p><strong>Note:</strong> Please keep in mind this filename is supplied
57
57
* by the client and should not be used blindly. In addition to not using
58
58
* the directory portion, the file name could also contain characters such
59
- * as ".." and others that can be used maliciously.
59
+ * as ".." and others that can be used maliciously. It is recommended to not
60
+ * use this filename directly. Preferably generate a unique one and save
61
+ * this one one somewhere for reference, if necessary.
60
62
* @return the original filename, or the empty String if no file has been chosen
61
63
* in the multipart form, or {@code null} if not defined or not available
62
64
* @see org.apache.commons.fileupload.FileItem#getName()
Original file line number Diff line number Diff line change @@ -3002,8 +3002,8 @@ for the body. This allows a variety of async responses with `ResponseEntity` as
3002
3002
asynchronously at a later point. This allows the response status and headers to vary
3003
3003
depending on the outcome of asynchronous request handling.
3004
3004
* `Mono<ResponseEntity<Mono<T>>>` or `Mono<ResponseEntity<Flux<T>>>` are yet another
3005
- possible, albeit less common alternative. They provides the response status and headers
3006
- asynchronously first and then the response body, also asynchronously at a second point later .
3005
+ possible, albeit less common alternative. They provide the response status and headers
3006
+ asynchronously first and then the response body, also asynchronously, second.
3007
3007
3008
3008
3009
3009
[[webflux-ann-jackson]]
You can’t perform that action at this time.
0 commit comments