6 calls to file_validate() in Drupal 8
- FileUploadResource::validate in core/
modules/ file/ src/ Plugin/ rest/ resource/ FileUploadResource.php - Validates the file.
- FileValidationConstraintValidator::validate in core/
modules/ file/ src/ Plugin/ Validation/ Constraint/ FileValidationConstraintValidator.php - Checks if the passed value is valid.
- TemporaryJsonapiFileFieldUploader::validate in core/
modules/ jsonapi/ src/ Controller/ TemporaryJsonapiFileFieldUploader.php - Validates the file.
- ValidateTest::testCallerValidation in core/
modules/ file/ tests/ src/ Kernel/ ValidateTest.php - Test that the validators passed into are checked.
- ValidateTest::testInsecureExtensions in core/
modules/ file/ tests/ src/ Kernel/ ValidateTest.php - Tests hard-coded security check in file_validate().
- _file_save_upload_single in core/
modules/ file/ file.module - Saves a file upload to a new location.