File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
app/code/Magento/ImportExport/Model/Source Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1717use Magento \ImportExport \Model \Import ;
1818use Magento \MediaStorage \Model \File \Uploader ;
1919use Magento \MediaStorage \Model \File \UploaderFactory ;
20+ use Laminas \Validator \File \Upload as FileUploadValidator ;
2021
2122class Upload
2223{
@@ -74,11 +75,11 @@ public function __construct(
7475 */
7576 public function uploadSource (string $ entity )
7677 {
77- /** @var $adapter \Zend_File_Transfer_Adapter_Http */
78+ /** @var $adapter \Laminas\File\Transfer\Adapter\Http */
7879 $ adapter = $ this ->httpFactory ->create ();
7980 if (!$ adapter ->isValid (Import::FIELD_NAME_SOURCE_FILE )) {
8081 $ errors = $ adapter ->getErrors ();
81- if ($ errors [0 ] == \Zend_Validate_File_Upload ::INI_SIZE ) {
82+ if ($ errors [0 ] == FileUploadValidator ::INI_SIZE ) {
8283 $ errorMessage = $ this ->importExportData ->getMaxUploadSizeMessage ();
8384 } else {
8485 $ errorMessage = __ ('The file was not uploaded. ' );
You can’t perform that action at this time.
0 commit comments