Update src/models/rest.ts
This commit is contained in:
parent
6a58a69031
commit
d7647a88ee
1 changed files with 1 additions and 1 deletions
|
@ -319,7 +319,7 @@ export class RESTManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const form = new FormData()
|
const form = new FormData()
|
||||||
files.map((file, index) => form.append(`file${index + 1}`, file.blob, file.name))
|
files.forEach((file, index) => form.append(`file${index + 1}`, file.blob, file.name))
|
||||||
const json = JSON.stringify(body)
|
const json = JSON.stringify(body)
|
||||||
form.append('payload_json', json)
|
form.append('payload_json', json)
|
||||||
if (body === undefined) body = {}
|
if (body === undefined) body = {}
|
||||||
|
|
Loading…
Reference in a new issue