Update src/models/rest.ts

This commit is contained in:
ayntee 2021-01-28 20:26:41 +04:00 committed by GitHub
parent 6a58a69031
commit d7647a88ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,7 @@ export class RESTManager {
}
}
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)
form.append('payload_json', json)
if (body === undefined) body = {}