Represents an file upload from an HTML FORM.
| package |
Default |
|---|
__construct()
charset() : string
stringthe charset for the upload
contentTransferEncoding() : string
stringthe contentTransferEncoding for the upload
contentType() : string
stringthe content type for the upload
endHandler( $arg0) : $this
callable
$this
exceptionHandler( $arg0) : $this
callable
$this
fetch( $arg0) : $this
integer
$this
file() : \io\vertx\jphp\core\file\AsyncFile
\io\vertx\jphp\core\file\AsyncFilethe async uploaded file when {@link #streamToFileSystem} has been used
filename() : string
stringthe filename which was used when upload the file.
handler( $arg0) : $this
callable
$this
isSizeAvailable() : boolean
boolean{@code true} if the size of the upload can be retrieved via {@link #size()}.
name() : string
stringthe name of the attribute
pause() : $this
$this
pipe() : \io\vertx\jphp\core\http\Pipe<Buffer>
The stream will be resumed when the pipe will be wired to a WriteStream.
\io\vertx\jphp\core\http\Pipea pipe
pipeTo( $arg0, $arg1 = null) : void
param $dst [WriteStream
Pipe this ReadStream to the WriteStream.
Elements emitted by this stream will be written to the write stream until this stream ends or fails.
Once this stream has ended or failed, the write stream will be ended and the handler will be
called with the result.
param $dst [WriteStream
WriteStream
callable
resume() : $this
$this
size() : integer
Check @see \io\vertx\jphp\core\http\HttpServerFileUpload::isSizeAvailable to determine this
integerthe size of the upload (in bytes)
streamToFileSystem( $arg0) : $this
string
$this