new HttpServerFileUpload(jupload)
Represents an upload from an HTML form. Created internally and provided to upload
handlers. Instances of this class should not be created externally.
Parameters:
Name | Type | Description |
---|---|---|
jupload |
org.vertx.java.core.http.HttpServerFileUpload | the underlying java proxy object |
- Source:
- See:
Extends
Methods
-
charset() → {string}
-
The charset
- Source:
Returns:
charset- Type
- string
-
contentTransferEncoding() → {string}
-
The content transfer encoding
- Source:
Returns:
contentTransferEncoding- Type
- string
-
contentType() → {string}
-
The content type
- Source:
Returns:
contentType- Type
- string
-
dataHandler(handler)
-
Set a data handler. As data is read, the handler will be called with a Buffer containing the data read.
Parameters:
Name Type Description handler
BodyHandler the handler to call - Inherited From:
- Source:
-
endHandler(handler)
-
Set an end handler. Once the stream has ended, and there is no more data to be read, the handler will be called.
Parameters:
Name Type Description handler
Handler the handler to call - Inherited From:
- Source:
-
exceptionHandler(handler)
-
Set an exception handler.
Parameters:
Name Type Description handler
Handler the handler to call - Inherited From:
- Source:
-
filename() → {string}
-
The filename of the upload
- Source:
Returns:
filenmae- Type
- string
-
name() → {string}
-
The name of the upload
- Source:
Returns:
name- Type
- string
-
pause()
-
Pause the
ReadStream
. While the stream is paused, no data will be sent to the data Handler- Inherited From:
- Source:
-
resume()
-
Resume reading. If the
ReadStream
has been paused, reading will recommence on it.- Inherited From:
- Source:
-
size() → {number}
-
The size
- Source:
Returns:
size- Type
- number
-
streamToFileSystem(filename) → {http.HttpServerFileUpload}
-
Stream the upload to the given file
Parameters:
Name Type Description filename
string The file to which it wil be streamed - Source:
Returns:
- Type
- http.HttpServerFileUpload