diff --git a/app/code/Magento/ProductVideo/view/adminhtml/web/js/new-video-dialog.js b/app/code/Magento/ProductVideo/view/adminhtml/web/js/new-video-dialog.js index 562bff2e1d472..49319f3e90dd4 100644 --- a/app/code/Magento/ProductVideo/view/adminhtml/web/js/new-video-dialog.js +++ b/app/code/Magento/ProductVideo/view/adminhtml/web/js/new-video-dialog.js @@ -628,7 +628,7 @@ define([ }).css('display', 'none'); fu.parent().append(tmpInput); fileUploader = $(tmpInput).fileupload(); - fileUploader.fileupload('send', data).success(function (result, textStatus, jqXHR) { + fileUploader.fileupload('send', data).done(function (result, textStatus, jqXHR) { tmpInput.remove(); callback.call(null, result, textStatus, jqXHR); });