45 files declare their use of FileInterface

BaseFileConstraintValidator.php in core/modules/file/src/Plugin/Validation/Constraint/BaseFileConstraintValidator.php
claro.theme in core/themes/claro/claro.theme
Functions to support theming in the Claro theme.
ComputedFileUrlTest.php in core/modules/file/tests/src/Kernel/ComputedFileUrlTest.php
ContentImportTest.php in core/tests/Drupal/FunctionalTests/DefaultContent/ContentImportTest.php
DatabaseFileUsageBackend.php in core/modules/file/src/FileUsage/DatabaseFileUsageBackend.php
EditorFileReference.php in core/modules/editor/src/Plugin/Filter/EditorFileReference.php
editor_test.module in core/modules/editor/tests/modules/editor_test/editor_test.module
Helper module for the Text Editor tests.
EntityReferenceFieldItemNormalizer.php in core/modules/serialization/src/Normalizer/EntityReferenceFieldItemNormalizer.php
file.module in core/modules/file/file.module
Defines a "managed_file" Form API field and a "file" field for Field module.
File.php in core/modules/media/src/Plugin/media/Source/File.php
File.php in core/modules/file/src/Entity/File.php
FileFieldTestBase.php in core/modules/file/tests/src/Functional/FileFieldTestBase.php
FileImageDimensionsConstraintValidatorTest.php in core/modules/file/tests/src/Kernel/Plugin/Validation/Constraint/FileImageDimensionsConstraintValidatorTest.php
FileIsImageConstraintValidatorTest.php in core/modules/file/tests/src/Kernel/Plugin/Validation/Constraint/FileIsImageConstraintValidatorTest.php
FileManagedAccessTest.php in core/modules/file/tests/src/Kernel/FileManagedAccessTest.php
FileManagedTestBase.php in core/modules/file/tests/src/Functional/FileManagedTestBase.php
FileManagedUnitTestBase.php in core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php
FileMigrationSetupTrait.php in core/modules/file/tests/src/Kernel/Migrate/d7/FileMigrationSetupTrait.php
FileSelection.php in core/modules/file/src/Plugin/EntityReferenceSelection/FileSelection.php
FileTest.php in core/modules/jsonapi/tests/src/Functional/FileTest.php
FileUploadForm.php in core/modules/media_library/src/Form/FileUploadForm.php
FileUploadHandler.php in core/modules/file/src/Upload/FileUploadHandler.php
FileUploadResourceTestBase.php in core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php
FileUploadResult.php in core/modules/file/src/Upload/FileUploadResult.php
FileUsageBase.php in core/modules/file/src/FileUsage/FileUsageBase.php
FileUsageInterface.php in core/modules/file/src/FileUsage/FileUsageInterface.php
FileValidationEvent.php in core/modules/file/src/Validation/FileValidationEvent.php
FileValidator.php in core/modules/file/src/Validation/FileValidator.php
FileValidatorInterface.php in core/modules/file/src/Validation/FileValidatorInterface.php
FileValidatorTestBase.php in core/modules/file/tests/src/Kernel/Validation/FileValidatorTestBase.php
image.module in core/modules/image/image.module
Exposes global functionality for creating image styles.
Importer.php in core/lib/Drupal/Core/DefaultContent/Importer.php
InlineBlockPrivateFilesTest.php in core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockPrivateFilesTest.php
LoadTest.php in core/modules/file/tests/src/Kernel/LoadTest.php
locale.bulk.inc in core/modules/locale/locale.bulk.inc
Mass import-export and batch import functionality for Gettext .po files.
MigrateFileTest.php in core/modules/file/tests/src/Kernel/Migrate/d6/MigrateFileTest.php
MigrateUserPictureD6FileTest.php in core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserPictureD6FileTest.php
RelationshipNodeFileDataTest.php in core/modules/file/tests/src/Kernel/Views/RelationshipNodeFileDataTest.php
RelationshipUserFileDataTest.php in core/modules/file/tests/src/Kernel/Views/RelationshipUserFileDataTest.php
ResponsiveImageFormatter.php in core/modules/responsive_image/src/Plugin/Field/FieldFormatter/ResponsiveImageFormatter.php
SpaceUsedTest.php in core/modules/file/tests/src/Kernel/SpaceUsedTest.php
Status.php in core/modules/file/src/Plugin/views/filter/Status.php
TemporaryJsonapiFileFieldUploader.php in core/modules/jsonapi/src/Controller/TemporaryJsonapiFileFieldUploader.php
TestFileUsage.php in core/modules/system/tests/modules/service_provider_test/src/TestFileUsage.php
UrlPlainFormatter.php in core/modules/file/src/Plugin/Field/FieldFormatter/UrlPlainFormatter.php

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.