Represents an file upload from an HTML FORM.
AnythingHttpServerFileUploadBasicIdentifiableObjectAnythingno subtypes hierarchy
| Initializer |
HttpServerFileUpload(HttpServerFileUpload unknown) |
| Inherited Attributes |
Attributes inherited from: Objecthash, string |
| Methods | |
charset | shared default String charset()@return the charset for the upload |
contentTransferEncoding | shared default String contentTransferEncoding()@return the contentTransferEncoding for the upload |
contentType | shared default String contentType()@return the content type for the upload |
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()@return the filename which was used when upload the file. |
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()@return true if the size of the upload can be retrieved via size. |
name | shared default String name()@return the name of the attribute |
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: Objectequals |
Methods inherited from: ReadStream<T> |
Methods inherited from: StreamBase |