Symfony\Component\DomCrawler\Field\FileFormField::setErrorCode
Sets the PHP error code associated with the field.
Signature
public function setErrorCode(integer
$error )
Parameters
$error
— integer- The error code (one of UPLOAD_ERR_INI_SIZE, UPLOAD_ERR_FORM_SIZE, UPLOAD_ERR_PARTIAL, UPLOAD_ERR_NO_FILE, UPLOAD_ERR_NO_TMP_DIR, UPLOAD_ERR_CANT_WRITE, or UPLOAD_ERR_EXTENSION)
Errors/Exceptions
-
InvalidArgumentException
- When error code doesn't exist