메소드 |
설명 |
|
addHeader ( string $name, string $value ) : void |
Adds header information to the part |
|
delete ( ) : void |
Deletes the underlying storage for a file item, including deleting any associated temporary disk file. |
|
fromHttpRequest ( AppserverIo\Psr\HttpMessage\PartInterface $httpPart ) : Part |
Creates a new servlet part instance with the data from the HTTP part. |
|
getContentType ( ) : string |
Gets the content type of this part. |
|
getFilename ( ) : string |
Gets the original form filename. |
|
getHeader ( string $name ) : string |
Returns the value of the specified mime header as a String. |
|
getHeaderNames ( ) : array |
Gets the header names of this Part. |
|
getHeaders ( string $name = null ) : array |
Gets the values of the Part header with the given name. |
|
getInputStream ( ) : resource |
Gets the content of this part as an InputStream |
|
getName ( ) : string |
Gets the name of this part |
|
getSize ( ) : integer |
Returns the size of this file. |
|
getTmpFilename ( ) : string |
Returns the temporary filename. |
|
init ( string $streamWrapper = self::STREAM_WRAPPER_TEMP, integer $maxMemory = 5242880 ) : void |
Initiates a http form part object |
|
putContent ( string $content ) : void |
Puts content to input stream. |
|
setFilename ( string $filename ) : void |
Sets the orig form filename. |
|
setName ( string $name ) : void |
Sets the name of the part |
|
setTmpFilename ( string $tmpFilename ) : void |
Sets the temporary filename. |
|
write ( string $fileName ) : integer |
A convenience method to write this uploaded item to disk. |
|