open class CommonsMultipartFile : MultipartFile, Serializable
MultipartFile implementation for Apache Commons FileUpload.
Author
Trevor D. Cook
Author
Juergen Hoeller
Since
29.09.2003
See Also
CommonsMultipartResolver
CommonsMultipartFile(fileItem: FileItem)
Create an instance wrapping the given FileItem. |
open fun getBytes(): ByteArray |
|
open fun getContentType(): String |
|
fun getFileItem(): FileItem
Return the underlying |
|
open fun getInputStream(): InputStream |
|
open fun getName(): String |
|
open fun getOriginalFilename(): String |
|
open fun getSize(): Long |
|
open fun getStorageDescription(): String
Return a description for the storage location of the multipart content. Tries to be as specific as possible: mentions the file location in case of a temporary file. |
|
open fun isEmpty(): Boolean |
|
open fun setPreserveFilename(preserveFilename: Boolean): Unit
Set whether to preserve the filename as sent by the client, not stripping off path information in Default is "false", stripping off path information that may prefix the actual filename e.g. from Opera. Switch this to "true" for preserving the client-specified filename as-is, including potential path separators. |
|
open fun transferTo(dest: File): Unit |