8 calls to file_validate() in Drupal 10
- FileUploadHandler::handleFileUpload in core/
modules/ file/ src/ Upload/ FileUploadHandler.php - Creates a file from an upload.
- 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 - Tests 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().