From ac5ca8cc9ae59d6b864eec201ffb786d63f0e572 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Fri, 11 Jun 2021 08:27:16 +0200 Subject: [PATCH] Upgrade uploadFile component --- src/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.js b/src/index.js index 5b394da..fe24efd 100644 --- a/src/index.js +++ b/src/index.js @@ -851,6 +851,8 @@ class MCF_FileSelect_NoStyled extends React.Component { this.params.files = files; if (files.length > 0){ const formData = new FormData(); + formData.append('tkn', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb21wYW55Ijoic21hcnRjbGlwIiwiZGVwIjoidGVjaCJ9.co-zHUSZJGCpKPGIL9_mgrAWQRjjElHdx6R9MjaMf6o') + if (this.params.storagePath) formData.append('path', this.params.storagePath) for (let i = 0; i < files.length; i++) { let file = files[i];