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 aa7e513 commit dc8b5dbCopy full SHA for dc8b5db
app/code/Magento/RemoteStorage/Plugin/Image.php
@@ -87,10 +87,7 @@ public function __construct(
87
*/
88
public function beforeOpen(AbstractAdapter $subject, $filename): array
89
{
90
- if (!$filename) {
91
- throw new \InvalidArgumentException('Wrong file');
92
- }
93
- if ($this->isEnabled) {
+ if ($this->isEnabled && !empty($filename)) {
94
$filename = $this->copyFileToTmp($filename);
95
}
96
return [$filename];
0 commit comments