Aleksander Machniak
2012-07-23 9620540a63d7dcabfa7459440dc5a35fe9a9507a
Fix 403 error on file uploads with drag&drop (#1488539)
1 files modified
1 ■■■■ changed files
program/js/app.js 1 ●●●● patch | view | raw | blame | history
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'); }