diff --git a/src/models/rest.ts b/src/models/rest.ts index 7adbdf6..daab5d1 100644 --- a/src/models/rest.ts +++ b/src/models/rest.ts @@ -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 = {}