'); $.ajax({ url: "/admin/import/price-upload", data: formData, type: "POST", success: function(data) { console.log(data); $('.yt-loader').remove(); new PNotify({ title: "Success", text: "File updated", type: "success", styling: "bootstrap3", icon: "glyphicon glyphicon-exclamation-sign" }); }, cache: false, contentType: false, processData: false }); e.preventDefault(); }); JS; $this->registerJs($js, View::POS_READY); $this->params[ 'breadcrumbs' ][] = \Yii::t('catalog', 'Price update'); ?> [ 'enctype' => 'multipart/form-data', ], 'id' => 'my-form', 'action' => 'import/upload', ] ) ?> ' . \Yii::t('catalog', 'Upload Document') . ''; echo FileInput::widget( [ 'name' => 'attachment_3', ] ); ?> = Html::submitButton( \Yii::t('catalog', 'Send'), [ 'class' => 'btn btn-success', ] ) ?>