diff --git a/templates/node/lib/services/service.js.twig b/templates/node/lib/services/service.js.twig index 4d993dcc0..9fba248cf 100644 --- a/templates/node/lib/services/service.js.twig +++ b/templates/node/lib/services/service.js.twig @@ -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 %});