Skip to content

Commit

Permalink
fix: koa uploaded file decorators (#1103)
Browse files Browse the repository at this point in the history
  • Loading branch information
haaijman-imagem committed Apr 11, 2023
1 parent 6767942 commit 9bcbe99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/driver/koa/KoaDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,10 @@ export class KoaDriver extends BaseDriver {
return context.query;

case 'file':
return actionOptions.context.req.file;
return actionOptions.context.request.file;

case 'files':
return actionOptions.context.req.files;
return actionOptions.context.request.files;

case 'header':
return context.headers[param.name.toLowerCase()];
Expand Down

0 comments on commit 9bcbe99

Please sign in to comment.