diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-07-23 20:40:28 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-07-23 20:40:28 +0200 |
commit | 9620540a63d7dcabfa7459440dc5a35fe9a9507a (patch) | |
tree | e1a614426c161e176106ee5f9f7fa4728c678124 /program/js/app.js | |
parent | a49e00a56729cd0c13958f4a96f63fdc2c80521f (diff) |
Fix 403 error on file uploads with drag&drop (#1488539)
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 1 |
1 files changed, 1 insertions, 0 deletions
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'); } |