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 4690884 commit d246fe6Copy full SHA for d246fe6
vendor/assets/javascripts/jquery-fileupload/jquery.iframe-transport.js
@@ -119,6 +119,13 @@
119
.val(field.value)
120
.appendTo(form);
121
});
122
+ // Add a hidden `X-Requested-With` field with the value `IFrame` to the
123
+ // form, to help server-side code to determine that the upload happened
124
+ // through this transport.
125
+ $('<input type="hidden"/>')
126
+ .prop('name', 'X-Requested-With')
127
+ .val('IFrame')
128
+ .appendTo(form);
129
}
130
if (options.fileInput && options.fileInput.length &&
131
options.type === 'POST') {
0 commit comments