@groovy.transform.CompileStatic class HttpServerFileUpload extends java.lang.Object
Represents an file upload from an HTML FORM.
| Constructor and description |
|---|
HttpServerFileUpload
(java.lang.Object delegate) |
| Type | Name and description |
|---|---|
java.lang.String |
charset()@return the charset for the upload |
java.lang.String |
contentTransferEncoding()@return the contentTransferEncoding for the upload |
java.lang.String |
contentType()@return the content type for the upload |
HttpServerFileUpload |
endHandler(io.vertx.core.Handler<java.lang.Void> endHandler) |
HttpServerFileUpload |
exceptionHandler(io.vertx.core.Handler<java.lang.Throwable> handler) |
java.lang.String |
filename()@return the filename which was used when upload the file. |
java.lang.Object |
getDelegate() |
HttpServerFileUpload |
handler(io.vertx.core.Handler<Buffer> handler) |
boolean |
isSizeAvailable()@return true if the size of the upload can be retrieved via HttpServerFileUpload.size. |
java.lang.String |
name()@return the name of the attribute |
HttpServerFileUpload |
pause() |
HttpServerFileUpload |
resume() |
long |
size()The size of the upload may not be available until it is all read. |
HttpServerFileUpload |
streamToFileSystem(java.lang.String filename)Stream the content of this upload to the given file on storage. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The size of the upload may not be available until it is all read. Check HttpServerFileUpload.isSizeAvailable to determine this
Stream the content of this upload to the given file on storage.
filename - the name of the file