Represents item values after file upload is initiated. Implements a magic toString method, so that any default rules or filter will not fail when applied to this value.
package | Formagic\Item\Value |
---|---|
author | Florian Sonnenburg |
since | 2013 First time introduced |
codeCoverageIgnore | Simple PoPo, not test-worthy |
__construct(string $fileName, string $mimeType, string $uploadedFilePath, integer $uploadError, integer $fileSize)
string
string
string
integer
integer
__toString() : string
The return value of this method will be used e.g. in rules that are not capable of dealing explicitly with uploaded files but operate on string values (as indicated by the Formagic_Rule_Abstract::validate() method)
string
getFileName() : string
string
File namegetFileSize() : integer
integer
File size in bytegetMimeType() : string
string
getUploadStatus() : integer
Can one of the following PHP constant values:
see | for details |
---|
integer
Error status$fileName : string
$fileSize : integer
$mimeType : string
$uploadStatus : integer
$uploadedFilePath : string