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