diff --git a/resources/assets/js/services/http.js b/resources/assets/js/services/http.js index 06cc6a04f..06dac9864 100644 --- a/resources/assets/js/services/http.js +++ b/resources/assets/js/services/http.js @@ -67,7 +67,7 @@ async function dataRequest(method, url, data = null) { body: data, }; - if (typeof data === 'object') { + if (typeof data === 'object' && !(data instanceof FormData)) { options.headers = {'Content-Type': 'application/json'}; options.body = JSON.stringify(data); }