Upgrade uploadFile component

This commit is contained in:
Daniel Garcia 2021-06-11 08:27:16 +02:00
parent 07c005a291
commit ac5ca8cc9a

View file

@ -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];