From 9620540a63d7dcabfa7459440dc5a35fe9a9507a Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 23 Jul 2012 20:40:28 +0200 Subject: [PATCH] Fix 403 error on file uploads with drag&drop (#1488539) --- program/js/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/program/js/app.js b/program/js/app.js index 11f18af1c..b1f563cd5 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -6288,6 +6288,7 @@ function rcube_webmail() contentType: formdata ? false : 'multipart/form-data; boundary=' + boundary, processData: false, data: formdata || multipart, + headers: {'X-Roundcube-Request': ref.env.request_token}, beforeSend: function(xhr, s) { if (!formdata && xhr.sendAsBinary) xhr.send = xhr.sendAsBinary; }, success: function(data){ ref.http_response(data); }, error: function(o, status, err) { ref.http_error(o, status, err, null, 'attachment'); }