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