From 8b7dfdd913528a3e024a6d1c8a0dfdfe675f4131 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 e8218d44c..5e170a007 100644 --- a/Resources/views/layout.html.twig +++ b/Resources/views/layout.html.twig @@ -564,6 +564,7 @@ ajaxOptions.data = formData; ajaxOptions.processData = false; ajaxOptions.contentType = false; + delete(headers['Content-type']); } // and trigger the API call