Represents an file upload from an HTML FORM.
Anything
HttpServerFileUpload
Basic
Identifiable
Object
Anything
no subtypes hierarchy
Initializer |
HttpServerFileUpload(HttpServerFileUpload unknown) |
Inherited Attributes |
Attributes inherited from: Object hash , string |
Methods | |
charset | shared default String charset() |
contentTransferEncoding | shared default String contentTransferEncoding() |
contentType | shared default String contentType() |
endHandler | shared actual default HttpServerFileUpload endHandler(Anything()? endHandler) Set an end handler. Once the stream has ended, and there is no more data to be read, this handler will be called. Refines ReadStream.endHandler |
exceptionHandler | shared actual default HttpServerFileUpload exceptionHandler(Anything(Throwable)? handler) Set an exception handler. Refines StreamBase.exceptionHandler |
filename | shared default String filename() |
handler | shared actual default HttpServerFileUpload handler(Anything(Buffer)? handler) Set a data handler. As data is read, the handler will be called with the data. Refines ReadStream.handler |
isSizeAvailable | shared default Boolean isSizeAvailable() |
name | shared default String name() |
pause | shared actual default HttpServerFileUpload pause() Pause the Refines ReadStream.pause |
resume | shared actual default HttpServerFileUpload resume() Resume reading. If the Refines ReadStream.resume |
size | shared default Integer size() The size of the upload may not be available until it is all read. Check isSizeAvailable to determine this |
streamToFileSystem | shared default HttpServerFileUpload streamToFileSystem(String filename) Stream the content of this upload to the given file on storage. Parameters:
|
Inherited Methods |
Methods inherited from: Object equals |
Methods inherited from: ReadStream<T> |
Methods inherited from: StreamBase |