8 calls to file_validate()
- FileUploadResource::post in core/
modules/ file/ src/ Plugin/ rest/ resource/ FileUploadResource.php - Creates a file from an endpoint.
- 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 - TemporaryJsonapiFileFieldUploader::handleFileUploadForField in core/
modules/ jsonapi/ src/ Controller/ TemporaryJsonapiFileFieldUploader.php - Creates and validates a file entity for a file field from a file stream.
- 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.
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.