We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6a14430 + e446d6e commit 0109ed1Copy full SHA for 0109ed1
src/api/ai-workflow/ai-workflow.controller.ts
@@ -262,8 +262,8 @@ export class AiWorkflowController {
262
required: true,
263
})
264
@ApiResponse({
265
- status: 302,
266
- description: 'Redirect to the blob to download',
+ status: 200,
+ description: 'Download the workflow run attachment',
267
268
@ApiResponse({ status: 403, description: 'Forbidden.' })
269
async downloadRunAttachment(
@@ -280,7 +280,9 @@ export class AiWorkflowController {
280
user,
281
);
282
283
- return new StreamableFile(zipResponse.data);
+ return new StreamableFile(zipResponse.data, {
284
+ disposition: `attachment; filename="${runId}-${attachmentId}.zip"`,
285
+ });
286
}
287
288
@Post('/:workflowId/runs/:runId/items')
0 commit comments