File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
app/code/Magento/RemoteStorage/etc
lib/internal/Magento/Framework/File Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 96
96
<argument name =" filesystem" xsi : type =" object" >fullRemoteFilesystem</argument >
97
97
</arguments >
98
98
</type >
99
+ <type name =" Magento\Framework\File\Name" >
100
+ <arguments >
101
+ <argument name =" filesystem" xsi : type =" object" >fullRemoteFilesystem</argument >
102
+ </arguments >
103
+ </type >
99
104
<type name =" Magento\Framework\Image\Adapter\AbstractAdapter" >
100
105
<plugin name =" remoteImageFile" type =" Magento\RemoteStorage\Plugin\Image" sortOrder =" 10" />
101
106
</type >
Original file line number Diff line number Diff line change @@ -55,12 +55,10 @@ public function getNewFileName(string $destinationFile)
55
55
}
56
56
57
57
if ($ driver ->isExists ($ destinationFile )) {
58
- $ destFileName = $ this ->generateFileName ($ driver , $ fileInfo );
58
+ return $ this ->generateFileName ($ driver , $ fileInfo );
59
59
} else {
60
60
return $ fileInfo ['basename ' ];
61
61
}
62
-
63
- return $ destFileName ;
64
62
}
65
63
66
64
/**
You can’t perform that action at this time.
0 commit comments