Search for fileName

  1. Search 7.x for fileName
  2. Search 9.5.x for fileName
  3. Search 8.9.x for fileName
  4. Search 10.3.x for fileName
  5. Other projects
Title Object type File name Summary
AssetOptimizationTest::replaceFileNamePrefix function core/tests/Drupal/FunctionalTests/Asset/AssetOptimizationTest.php Replaces the filename prefix in the given URL.
ContentDispositionFilenameParser class core/modules/file/src/Upload/ContentDispositionFilenameParser.php Parses the content-disposition header to extract the client filename.
ContentDispositionFilenameParser.php file core/modules/file/src/Upload/ContentDispositionFilenameParser.php
ContentDispositionFilenameParser::parseFilename function core/modules/file/src/Upload/ContentDispositionFilenameParser.php Parse the content disposition header and return the filename.
ContentDispositionFilenameParser::REQUEST_HEADER_FILENAME_REGEX constant core/modules/file/src/Upload/ContentDispositionFilenameParser.php The regex used to extract the filename from the content disposition header.
ContentDispositionFilenameParser::__construct function core/modules/file/src/Upload/ContentDispositionFilenameParser.php Private constructor to prevent instantiation.
ContentDispositionFilenameParserTest class core/modules/file/tests/src/Unit/Upload/ContentDispositionFilenameParserTest.php Tests the ContentDispositionFilenameParser class.
ContentDispositionFilenameParserTest.php file core/modules/file/tests/src/Unit/Upload/ContentDispositionFilenameParserTest.php
ContentDispositionFilenameParserTest::createRequest function core/modules/file/tests/src/Unit/Upload/ContentDispositionFilenameParserTest.php Creates a request with the given content-disposition header.
ContentDispositionFilenameParserTest::invalidHeaderProvider function core/modules/file/tests/src/Unit/Upload/ContentDispositionFilenameParserTest.php A data provider for invalid headers.
ContentDispositionFilenameParserTest::testParseFilenameExtended function core/modules/file/tests/src/Unit/Upload/ContentDispositionFilenameParserTest.php @covers ::parseFilename
ContentDispositionFilenameParserTest::testParseFilenameInvalid function core/modules/file/tests/src/Unit/Upload/ContentDispositionFilenameParserTest.php @covers ::parseFilename
@dataProvider invalidHeaderProvider
ContentDispositionFilenameParserTest::testParseFilenameMissing function core/modules/file/tests/src/Unit/Upload/ContentDispositionFilenameParserTest.php @covers ::parseFilename
ContentDispositionFilenameParserTest::testParseFilenameSuccess function core/modules/file/tests/src/Unit/Upload/ContentDispositionFilenameParserTest.php Tests the parseFilename() method.
DatabaseDriver::getExtensionFilename function core/lib/Drupal/Core/Extension/DatabaseDriver.php
DatabaseDriver::getFilename function core/lib/Drupal/Core/Extension/DatabaseDriver.php
DrupalKernel::getModuleFileNames function core/lib/Drupal/Core/DrupalKernel.php Gets the file name for each enabled module.
Extension::$filename property core/lib/Drupal/Core/Extension/Extension.php The filename of the main extension file (e.g., 'node.module').
Extension::getExtensionFilename function core/lib/Drupal/Core/Extension/Extension.php Returns the name of the main extension file, if any.
Extension::getFilename function core/lib/Drupal/Core/Extension/Extension.php Returns the filename of the extension's info file.
File::getFilename function core/modules/file/src/Entity/File.php Returns the name of the file.
File::setFilename function core/modules/file/src/Entity/File.php Sets the name of the file.
FileEventSubscriber::sanitizeFilename function core/modules/file/src/EventSubscriber/FileEventSubscriber.php Sanitizes the filename of a file being uploaded.
FileInterface::getFilename function core/modules/file/src/FileInterface.php Returns the name of the file.
FileInterface::setFilename function core/modules/file/src/FileInterface.php Sets the name of the file.
FileManagedFileElementTest::testFileNameTrim function core/modules/file/tests/src/Functional/FileManagedFileElementTest.php Tests file names have leading . removed.
FileNameLengthConstraint class core/modules/file/src/Plugin/Validation/Constraint/FileNameLengthConstraint.php File name length constraint.
FileNameLengthConstraint.php file core/modules/file/src/Plugin/Validation/Constraint/FileNameLengthConstraint.php
FileNameLengthConstraint::$maxLength property core/modules/file/src/Plugin/Validation/Constraint/FileNameLengthConstraint.php The maximum file name length.
FileNameLengthConstraint::$messageEmpty property core/modules/file/src/Plugin/Validation/Constraint/FileNameLengthConstraint.php The message when file name is empty.
FileNameLengthConstraint::$messageTooLong property core/modules/file/src/Plugin/Validation/Constraint/FileNameLengthConstraint.php The message when file name is too long.
FileNameLengthConstraintValidator class core/modules/file/src/Plugin/Validation/Constraint/FileNameLengthConstraintValidator.php Validates the file name length constraint.
FileNameLengthConstraintValidator.php file core/modules/file/src/Plugin/Validation/Constraint/FileNameLengthConstraintValidator.php
FileNameLengthConstraintValidator::validate function core/modules/file/src/Plugin/Validation/Constraint/FileNameLengthConstraintValidator.php
FileNameLengthConstraintValidatorTest class core/modules/file/tests/src/Kernel/Plugin/Validation/Constraint/FileNameLengthConstraintValidatorTest.php Tests the FileNameLengthConstraintValidator.
FileNameLengthConstraintValidatorTest.php file core/modules/file/tests/src/Kernel/Plugin/Validation/Constraint/FileNameLengthConstraintValidatorTest.php
FileNameLengthConstraintValidatorTest::testFileValidateNameLength function core/modules/file/tests/src/Kernel/Plugin/Validation/Constraint/FileNameLengthConstraintValidatorTest.php This will ensure the filename length is valid.
FileRepositoryTest::testWithFilename function core/modules/file/tests/src/Kernel/FileRepositoryTest.php Tests the writeData() method.
FileSystem::createFilename function core/lib/Drupal/Core/File/FileSystem.php Creates a full file path from a directory and filename.
FileSystem::getDestinationFilename function core/lib/Drupal/Core/File/FileSystem.php Determines the destination path for a file.
FileSystemInterface::createFilename function core/lib/Drupal/Core/File/FileSystemInterface.php Creates a full file path from a directory and filename.
FileSystemInterface::getDestinationFilename function core/lib/Drupal/Core/File/FileSystemInterface.php Determines the destination path for a file.
FileUploadResourceTestBase::testFileUploadUnicodeFilename function core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php Tests using the file upload route with a unicode file name.
FileUploadResult::$originalFilename property core/modules/file/src/Upload/FileUploadResult.php The original filename.
FileUploadResult::$sanitizedFilename property core/modules/file/src/Upload/FileUploadResult.php The sanitized filename.
FileUploadResult::getOriginalFilename function core/modules/file/src/Upload/FileUploadResult.php Gets the original filename.
FileUploadResult::getSanitizedFilename function core/modules/file/src/Upload/FileUploadResult.php Gets the sanitized filename.
FileUploadResult::setOriginalFilename function core/modules/file/src/Upload/FileUploadResult.php Sets the original filename.
FileUploadResult::setSanitizedFilename function core/modules/file/src/Upload/FileUploadResult.php Sets the sanitized filename.
FileUploadSanitizeNameEvent::$filename property core/lib/Drupal/Core/File/Event/FileUploadSanitizeNameEvent.php The name of the file being uploaded.

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