Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3247 from lujiaxing/patch-1
Browse files Browse the repository at this point in the history
Update image.js to make image uploader send same header with drag-drop-uploading
  • Loading branch information
Phinome committed Jul 19, 2018
2 parents 089c7de + 80f01fd commit 6a29341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dialogs/image/image.js
Expand Up @@ -702,7 +702,7 @@
uploader.on('uploadBeforeSend', function (file, data, header) {
//这里可以通过data对象添加POST参数
if (actionUrl.toLowerCase().indexOf('jsp') != -1) {
header['X_Requested_With'] = 'XMLHttpRequest';
header['X-Requested-With'] = 'XMLHttpRequest';
}
});

Expand Down

0 comments on commit 6a29341

Please sign in to comment.