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 17
17
use Magento \ImportExport \Model \Import ;
18
18
use Magento \MediaStorage \Model \File \Uploader ;
19
19
use Magento \MediaStorage \Model \File \UploaderFactory ;
20
+ use Laminas \Validator \File \Upload as FileUploadValidator ;
20
21
21
22
class Upload
22
23
{
@@ -74,11 +75,11 @@ public function __construct(
74
75
*/
75
76
public function uploadSource (string $ entity )
76
77
{
77
- /** @var $adapter \Zend_File_Transfer_Adapter_Http */
78
+ /** @var $adapter \Laminas\File\Transfer\Adapter\Http */
78
79
$ adapter = $ this ->httpFactory ->create ();
79
80
if (!$ adapter ->isValid (Import::FIELD_NAME_SOURCE_FILE )) {
80
81
$ errors = $ adapter ->getErrors ();
81
- if ($ errors [0 ] == \Zend_Validate_File_Upload ::INI_SIZE ) {
82
+ if ($ errors [0 ] == FileUploadValidator ::INI_SIZE ) {
82
83
$ errorMessage = $ this ->importExportData ->getMaxUploadSizeMessage ();
83
84
} else {
84
85
$ errorMessage = __ ('The file was not uploaded. ' );
You can’t perform that action at this time.
0 commit comments