public interface MultipartFile
FileUpload.| 限定符和类型 | 方法和说明 |
|---|---|
String |
contentTransferEncoding()
The content transfer encoding.
|
String |
contentType()
Return the content type of the file.
|
void |
delete()
Release the byteBuf and delete the temp file on disk.
|
File |
file()
Get the file on disk.
|
String |
fileName()
Get the original file name.
|
io.netty.buffer.ByteBuf |
getByteBuf()
Returns the content of the file item as a ByteBuf
|
boolean |
isInMemory()
Whether the content is in memory.
|
long |
length()
Return the size of the file in bytes.
|
String |
name()
Return the name of the parameter in the multipart form.
|
String |
string()
Get file content with default charset of UTF-8.
|
String |
string(Charset charset)
Get file content with specified charset.
|
void |
transferTo(File dest)
Transfer this to destination file.
|
String name()
null or empty)String fileName()
String contentType()
null if not defined (or no file has been chosen in the multipart form)long length()
String contentTransferEncoding()
boolean isInMemory()
File file() throws IOException
isInMemory() is true then an IOException will be thrown.IOException - exio.netty.buffer.ByteBuf getByteBuf()
throws IOException
IOExceptionvoid transferTo(File dest) throws IOException
dest - destinationIOExceptionString string() throws IOException
IOException - exString string(Charset charset) throws IOException
charset - charsetIOException - exvoid delete()
HttpData.delete(). In fact, we'll be happy that you call this method manually.Copyright © 2020. All rights reserved.