FileUploadResourceTestBase::$postUri |
property |
core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php |
The POST URI. |
FileUploadResourceTestBase::$resourceConfigId |
property |
core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php |
The REST Resource Config entity ID under test (i.e. a resource type). |
FileUploadResourceTestBase::$testFileData |
property |
core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php |
Test file data. |
FileUploadResourceTestBase::$user |
property |
core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php |
An authenticated user. |
FileUploadResourceTestBase::assertNormalizationEdgeCases |
function |
core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php |
Asserts normalization-specific edge cases. |
FileUploadResourceTestBase::assertResponseData |
function |
core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php |
Asserts expected normalized data matches response data. |
FileUploadResourceTestBase::fileRequest |
function |
core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php |
Performs a file upload request. Wraps the Guzzle HTTP client. |
FileUploadResourceTestBase::getExpectedNormalizedEntity |
function |
core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php |
Gets the expected file entity. |
FileUploadResourceTestBase::getExpectedUnauthorizedAccessCacheability |
function |
core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php |
Returns the expected cacheability of an unauthorized access response. |
FileUploadResourceTestBase::getExpectedUnauthorizedAccessMessage |
function |
core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php |
Return the expected error message. |
FileUploadResourceTestBase::getNormalizedPostEntity |
function |
core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php |
Returns the normalized POST entity referencing the uploaded file. |
FileUploadResourceTestBase::setUp |
function |
core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php |
|
FileUploadResourceTestBase::setUpAuthorization |
function |
core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php |
Sets up the necessary authorization. |
FileUploadResourceTestBase::testFileUploadInvalidFileType |
function |
core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php |
Tests using the file upload route with an invalid file type. |
FileUploadResourceTestBase::testFileUploadLargerFileSize |
function |
core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php |
Tests using the file upload route with a file size larger than allowed. |
FileUploadResourceTestBase::testFileUploadMaliciousExtension |
function |
core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php |
Tests using the file upload POST route with malicious extensions. |
FileUploadResourceTestBase::testFileUploadNoExtensionSetting |
function |
core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php |
Tests using the file upload POST route no extension configured. |
FileUploadResourceTestBase::testFileUploadStrippedFilePath |
function |
core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php |
Tests using the file upload route with any path prefixes being stripped. |
FileUploadResourceTestBase::testFileUploadUnicodeFilename |
function |
core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php |
Tests using the file upload route with a unicode file name. |
FileUploadResourceTestBase::testFileUploadZeroByteFile |
function |
core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php |
Tests using the file upload route with a zero byte file. |
FileUploadResourceTestBase::testPostFileUpload |
function |
core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php |
Tests using the file upload POST route. |
FileUploadResourceTestBase::testPostFileUploadDuplicateFile |
function |
core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php |
Tests using the file upload POST route with a duplicate file name. |
FileUploadResourceTestBase::testPostFileUploadDuplicateFileRaceCondition |
function |
core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php |
Tests using the file upload POST route twice, simulating a race condition. |
FileUploadResourceTestBase::testPostFileUploadInvalidHeaders |
function |
core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php |
Tests using the file upload POST route with invalid headers. |
FileUploadResult |
class |
core/modules/file/src/Upload/FileUploadResult.php |
Value object for a file upload result. |
FileUploadResult.php |
file |
core/modules/file/src/Upload/FileUploadResult.php |
|
FileUploadResult::$file |
property |
core/modules/file/src/Upload/FileUploadResult.php |
The File entity. |
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::$securityRename |
property |
core/modules/file/src/Upload/FileUploadResult.php |
If the filename was renamed for security reasons. |
FileUploadResult::getFile |
function |
core/modules/file/src/Upload/FileUploadResult.php |
Gets the File entity. |
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::isRenamed |
function |
core/modules/file/src/Upload/FileUploadResult.php |
Returns if there was a file rename. |
FileUploadResult::isSecurityRename |
function |
core/modules/file/src/Upload/FileUploadResult.php |
Returns if there was a security rename. |
FileUploadResult::setFile |
function |
core/modules/file/src/Upload/FileUploadResult.php |
Sets the File entity. |
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. |
FileUploadResult::setSecurityRename |
function |
core/modules/file/src/Upload/FileUploadResult.php |
Flags the result as having had a security rename. |
FileUploadSanitizeNameEvent |
class |
core/lib/Drupal/Core/File/Event/FileUploadSanitizeNameEvent.php |
An event during file upload that lets subscribers sanitize the filename. |
FileUploadSanitizeNameEvent.php |
file |
core/lib/Drupal/Core/File/Event/FileUploadSanitizeNameEvent.php |
|
FileUploadSanitizeNameEvent::$allowedExtensions |
property |
core/lib/Drupal/Core/File/Event/FileUploadSanitizeNameEvent.php |
A list of allowed extensions. |
FileUploadSanitizeNameEvent::$filename |
property |
core/lib/Drupal/Core/File/Event/FileUploadSanitizeNameEvent.php |
The name of the file being uploaded. |
FileUploadSanitizeNameEvent::$isSecurityRename |
property |
core/lib/Drupal/Core/File/Event/FileUploadSanitizeNameEvent.php |
Indicates the filename has changed for security reasons. |
FileUploadSanitizeNameEvent::getAllowedExtensions |
function |
core/lib/Drupal/Core/File/Event/FileUploadSanitizeNameEvent.php |
Gets the list of allowed extensions. |
FileUploadSanitizeNameEvent::getFilename |
function |
core/lib/Drupal/Core/File/Event/FileUploadSanitizeNameEvent.php |
Gets the filename. |
FileUploadSanitizeNameEvent::isSecurityRename |
function |
core/lib/Drupal/Core/File/Event/FileUploadSanitizeNameEvent.php |
Gets the security rename flag. |
FileUploadSanitizeNameEvent::setFilename |
function |
core/lib/Drupal/Core/File/Event/FileUploadSanitizeNameEvent.php |
Sets the filename. |
FileUploadSanitizeNameEvent::setSecurityRename |
function |
core/lib/Drupal/Core/File/Event/FileUploadSanitizeNameEvent.php |
Sets the security rename flag. |
FileUploadSanitizeNameEvent::stopPropagation |
function |
core/lib/Drupal/Core/File/Event/FileUploadSanitizeNameEvent.php |
|