From cff63299d9ffd60d84babd71b8264614343412a5 Mon Sep 17 00:00:00 2001 From: Pierre Date: Sun, 7 Jan 2018 16:29:20 +0100 Subject: [PATCH] Fixed input file --- assets/js/components/posts/form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/components/posts/form.js b/assets/js/components/posts/form.js index 18a314b0..01ea23af 100644 --- a/assets/js/components/posts/form.js +++ b/assets/js/components/posts/form.js @@ -374,7 +374,7 @@ ComunicWeb.components.posts.form = { //Append values datas.append("kind", "pdf"); - datas.append("image", pdfFileInput.files[0], pdfFileInput.files[0].name); + datas.append("pdf", pdfFileInput.files[0], pdfFileInput.files[0].name); }