Skip to content

Commit bda1366

Browse files
committed
MAGETWO-87641: Validation message displays many times after upload incorrect file extension
Reinstate fileuploadsend param setting
1 parent 17a9fc9 commit bda1366

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/Ui/view/base/web/js/form/element/file-uploader.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,10 @@ define([
345345
target = $(e.target);
346346

347347
if (allowed.passed) {
348+
target.on('fileuploadsend', function (event, postData) {
349+
postData.data.append('param_name', this.paramName);
350+
}.bind(data));
351+
348352
target.fileupload('process', data).done(function () {
349353
data.submit();
350354
});

0 commit comments

Comments
 (0)