Upgrade uploadFile component
This commit is contained in:
parent
07c005a291
commit
ac5ca8cc9a
1 changed files with 2 additions and 0 deletions
|
@ -851,6 +851,8 @@ class MCF_FileSelect_NoStyled extends React.Component {
|
||||||
this.params.files = files;
|
this.params.files = files;
|
||||||
if (files.length > 0){
|
if (files.length > 0){
|
||||||
const formData = new FormData();
|
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++) {
|
for (let i = 0; i < files.length; i++) {
|
||||||
let file = files[i];
|
let file = files[i];
|
||||||
|
|
Loading…
Reference in a new issue