Let the js library set the proper Content-type header when sending files in sandbox - fixes #501

This commit is contained in:
Jonathan Chan 2014-10-22 12:38:44 -04:00 committed by William Durand
parent 0b7c5d6749
commit 8b7dfdd913
No known key found for this signature in database
GPG Key ID: A509BCF1C1274F3B

View File

@ -564,6 +564,7 @@
ajaxOptions.data = formData;
ajaxOptions.processData = false;
ajaxOptions.contentType = false;
delete(headers['Content-type']);
}
// and trigger the API call