Skip to content

Commit

Permalink
Merge pull request #480 from appwrite/fix-node-bug
Browse files Browse the repository at this point in the history
Fix: File upload var name
  • Loading branch information
TorstenDittmann authored Jun 28, 2022
2 parents 91892b9 + 8d7ef13 commit a27cdc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/node/lib/services/service.js.twig
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class {{ service.name | caseUcfirst }} extends Service {
}

const stream = Stream.Readable.from(currentChunk);
payload['{{ parameter.name }}'] = { type: 'file', file: stream, filename: file.filename };
payload['{{ parameter.name }}'] = { type: 'file', file: stream, filename: {{ parameter.name }}.filename };

response = await selfClient.call('{{ method.method | caseLower }}', path, headers, payload{% if method.type == 'location' %}, 'arraybuffer'{% endif %});

Expand Down

0 comments on commit a27cdc6

Please sign in to comment.