From 9620540a63d7dcabfa7459440dc5a35fe9a9507a Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Mon, 23 Jul 2012 14:40:28 -0400
Subject: [PATCH] Fix 403 error on file uploads with drag&drop (#1488539)

---
 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 11f18af..b1f563c 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -6288,6 +6288,7 @@
         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'); }

--
Gitblit v1.9.1