Represents an file upload from an HTML FORM.
package |
Default |
---|
__construct()
charset() : string
string
the charset for the upload
contentTransferEncoding() : string
string
the contentTransferEncoding for the upload
contentType() : string
string
the 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\AsyncFile
the async uploaded file when {@link #streamToFileSystem} has been used
filename() : string
string
the 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
string
the 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\Pipe
a 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
integer
the size of the upload (in bytes)
streamToFileSystem( $arg0) : $this
string
$this