Part that represents an uploaded file received in
a multipart request.
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the original filename, or the empty String if no file has been chosen in the multipart form, ornull if not defined or not availableReturn the original filename in the client's filesystem. |
| public default Mono | Returns: completionMono with the result of the file transfer,
possibly IllegalStateException if the part isn't a filethe target file dest)Convenience method to copy the content of the file in this part to the given destination file. |
| public Mono | Returns: completionMono with the result of the file transfer,
possibly IllegalStateException if the part isn't a filethe target file dest)Convenience method to copy the content of the file in this part to the given destination file. |
| filename | back to summary |
|---|---|
| public String filename() Return the original filename in the client's filesystem. Note Please keep in mind this filename is supplied by the client and should not be used blindly. In addition to not using the directory portion, the file name could also contain characters such as ".." and others that can be used maliciously. It is recommended to not use this filename directly. Preferably generate a unique one and save this one somewhere for reference, if necessary.
| |
| transferTo | back to summary |
|---|---|
| public default Mono Convenience method to copy the content of the file in this part to the given destination file. If the destination file already exists, it will be truncated first. The default implementation delegates to
| |
| transferTo | back to summary |
|---|---|
| public Mono Convenience method to copy the content of the file in this part to the given destination file. If the destination file already exists, it will be truncated first.
| |