From 45f5c91bcfb9da0642e6155e2d1df9041c7863f8 Mon Sep 17 00:00:00 2001 From: Jonathan Chan Date: Wed, 22 Oct 2014 12:38:44 -0400 Subject: [PATCH] Let the js library set the proper Content-type header when sending files in sandbox - fixes #501 --- Resources/views/layout.html.twig | 1 + 1 file changed, 1 insertion(+) diff --git a/Resources/views/layout.html.twig b/Resources/views/layout.html.twig index 946892d22..e6a2db5c7 100755 --- a/Resources/views/layout.html.twig +++ b/Resources/views/layout.html.twig @@ -556,6 +556,7 @@ ajaxOptions.data = formData; ajaxOptions.processData = false; ajaxOptions.contentType = false; + delete(headers['Content-type']); } // and trigger the API call