Package io.javalin.http
Class UploadedFile
-
- All Implemented Interfaces:
public final class UploadedFile
Data class containing the content and meta-info of an uploaded file. content: the file-content as an InputStream: the content-type passed by the client size: the size of the file in bytes filename: the file-name reported by the client extension: the file-extension, extracted from the filename
-
-
Constructor Summary
Constructors Constructor Description UploadedFile(Part part)
-
Method Summary
Modifier and Type Method Description final InputStream
content()
final <T extends Any> T
contentAndClose(Function1<InputStream, T> callback)
final String
contentType()
final String
filename()
final String
extension()
final Long
size()
-
-
Method Detail
-
content
final InputStream content()
-
contentAndClose
final <T extends Any> T contentAndClose(Function1<InputStream, T> callback)
-
contentType
final String contentType()
-
-
-
-