Skip to content

Commit eb640a9

Browse files
committed
Merge remote-tracking branch 'adobe-commerce-tier-4/ACP2E-2847' into Tier4-Kings-PR-03-05-2024
2 parents 121ee1b + ba2dc0f commit eb640a9

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

app/code/Magento/MediaStorage/Model/File/Uploader.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,9 @@ protected function _validateFile()
205205
parent::_validateFile();
206206

207207
if (!$this->getImageValidator()->isValid($this->_file['tmp_name'])) {
208-
throw new ValidationException(__('File validation failed.'));
208+
throw new ValidationException(
209+
__('File validation failed. Check Image Processing Settings in the Store Configuration.')
210+
);
209211
}
210212
}
211213

app/code/Magento/MediaStorage/i18n/en_US.csv

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,31 @@ Synchronize,Synchronize
22
"Synchronizing %1 to %2","Synchronizing %1 to %2"
33
Synchronizing...,Synchronizing...
44
"The timeout limit for response from synchronize process was reached.","The timeout limit for response from synchronize process was reached."
5-
"File %1 does not exist","File %1 does not exist"
5+
"The ""%1"" file doesn't exist. Verify the file and try again.","The ""%1"" file doesn't exist. Verify the file and try again."
66
"File %1 is not readable","File %1 is not readable"
77
"File System","File System"
8-
Database,Database
8+
"Database (Deprecated)","Database (Deprecated)"
9+
"Sorry, something went wrong during image resize. Please see log for details.","Sorry, something went wrong during image resize. Please see log for details."
910
"database ""%1""","database ""%1"""
1011
"Parent directory does not exist: %1","Parent directory does not exist: %1"
1112
"File system","File system"
1213
"Unable to save file ""%1"" at ""%2""","Unable to save file ""%1"" at ""%2"""
1314
"Wrong file info format","Wrong file info format"
15+
"The file you uploaded has no extension.","The file you uploaded has no extension."
16+
"The source file moving process failed.","The source file moving process failed."
17+
"File validation failed. Check Image Processing Settings in the Store Configuration.","File validation failed. Check Image Processing Settings in the Store Configuration."
1418
"Path ""%value%"" is protected and cannot be used.","Path ""%value%"" is protected and cannot be used."
1519
"Path ""%value%"" is not available and cannot be used.","Path ""%value%"" is not available and cannot be used."
16-
"Path ""%value%"" may not include parent directory traversal (""../"", "".."").","Path ""%value%"" may not include parent directory traversal (""../"", "".."")."
20+
"Path ""%value%"" may not include parent directory traversal (""../"", ""..\").","Path ""%value%"" may not include parent directory traversal (""../"", ""..\")."
1721
"Please set available and/or protected paths list(s) before validation.","Please set available and/or protected paths list(s) before validation."
1822
"File with an extension ""%value%"" is protected and cannot be uploaded","File with an extension ""%value%"" is protected and cannot be uploaded"
1923
"Unable to create directory: %1","Unable to create directory: %1"
2024
"Unable to save file: %1","Unable to save file: %1"
25+
"Cannot resize image ""%1"" - original image not found","Cannot resize image ""%1"" - original image not found"
26+
"Cannot resize images - product images not found","Cannot resize images - product images not found"
27+
"Image resize: %1","Image resize: %1"
2128
"Storage Configuration for Media","Storage Configuration for Media"
2229
"Media Storage","Media Storage"
2330
"Select Media Database","Select Media Database"
24-
"After selecting a new media storage location, press the Synchronize button to transfer all media to that location. Media will not be available in the new location until the synchronization process is complete.","After selecting a new media storage location, press the Synchronize button to transfer all media to that location. Media will not be available in the new location until the synchronization process is complete."
31+
"After selecting a new media storage location, press the Synchronize button to transfer all media to that location and then ""Save Config"". Media will not be available in the new location until the synchronization process is complete.","After selecting a new media storage location, press the Synchronize button to transfer all media to that location and then ""Save Config"". Media will not be available in the new location until the synchronization process is complete."
2532
"Environment Update Time","Environment Update Time"

dev/tests/integration/testsuite/Magento/Theme/Controller/Adminhtml/System/Design/ThemeControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function testUploadFaviconAction()
6363
$output = $this->getResponse()->getBody();
6464
if (!in_array('imagick', get_loaded_extensions()) || $this->imageAdapter == 'GD2') {
6565
$this->assertStringContainsString(
66-
'{"error":"File validation failed."',
66+
'{"error":"File validation failed. Check Image Processing Settings in the Store Configuration."',
6767
$output
6868
);
6969
} else {

0 commit comments

Comments
 (0)