We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ff3c5b commit 8161a02Copy full SHA for 8161a02
vendor/assets/javascripts/jquery-fileupload/jquery.iframe-transport.js
@@ -115,6 +115,13 @@
115
.val(field.value)
116
.appendTo(form);
117
});
118
+ // Add a hidden `X-Requested-With` field with the value `IFrame` to the
119
+ // form, to help server-side code to determine that the upload happened
120
+ // through this transport.
121
+ $('<input type="hidden" />')
122
+ .prop('name', 'X-Requested-With')
123
+ .val('IFrame')
124
+ .appendTo(form);
125
}
126
if (options.fileInput && options.fileInput.length &&
127
options.type === 'POST') {
0 commit comments