We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f33dd5 commit db19d6dCopy full SHA for db19d6d
lib/internal/Magento/Framework/File/Test/Unit/UploaderTest.php
@@ -62,7 +62,7 @@ public function getCorrectFileNameProvider()
62
'a.' . str_repeat('b', 88)
63
],
64
[
65
- 'a.' . str_repeat('b', 199), // 201 characters
+ 'a.' . str_repeat('b', 89),
66
true
67
]
68
];
lib/internal/Magento/Framework/File/Uploader.php
@@ -496,7 +496,7 @@ public static function getCorrectFileName($fileName)
496
$fileInfo['extension'] = $fileInfo['extension'] ?? '';
497
498
// account for excessively long filenames that cannot be stored completely in database
499
- $maxFilenameLength = 200;
+ $maxFilenameLength = 90;
500
501
if (strlen($fileInfo['basename']) > $maxFilenameLength) {
502
throw new \LengthException(
0 commit comments