public function UploadedFileInterface::getError in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/psr/http-message/src/UploadedFileInterface.php \Psr\Http\Message\UploadedFileInterface::getError()
Retrieve the error associated with the uploaded file.
The return value MUST be one of PHP's UPLOAD_ERR_XXX constants.
If the file was uploaded successfully, this method MUST return UPLOAD_ERR_OK.
Implementations SHOULD return the value stored in the "error" key of the file in the $_FILES array.
Return value
int One of PHP's UPLOAD_ERR_XXX constants.
See also
http://php.net/manual/en/features.file-upload.errors.php
2 methods override UploadedFileInterface::getError()
- UploadedFile::getError in vendor/
zendframework/ zend-diactoros/ src/ UploadedFile.php - UploadedFile::getError in vendor/
symfony/ psr-http-message-bridge/ Tests/ Fixtures/ UploadedFile.php - Retrieve the error associated with the uploaded file.
File
- vendor/
psr/ http-message/ src/ UploadedFileInterface.php, line 92
Class
- UploadedFileInterface
- Value object representing a file uploaded through an HTTP request.
Namespace
Psr\Http\MessageCode
public function getError();