Skip to content

Commit

Permalink
BC-6488 - Add request timeout to upload controller (#4743)
Browse files Browse the repository at this point in the history
  • Loading branch information
bischofmax authored Feb 6, 2024
1 parent e2f3388 commit 2194761
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export class FilesStorageController {
@ApiResponse({ status: 403, type: ForbiddenException })
@ApiResponse({ status: 500, type: InternalServerErrorException })
@Post('/upload-from-url/:schoolId/:parentType/:parentId')
@RequestTimeout(config().INCOMING_REQUEST_TIMEOUT)
async uploadFromUrl(
@Body() body: FileUrlParams,
@Param() params: FileRecordParams,
Expand All @@ -80,6 +81,7 @@ export class FilesStorageController {
@ApiResponse({ status: 500, type: InternalServerErrorException })
@ApiConsumes('multipart/form-data')
@Post('/upload/:schoolId/:parentType/:parentId')
@RequestTimeout(config().INCOMING_REQUEST_TIMEOUT)
async upload(
@Body() _: FileParams,
@Param() params: FileRecordParams,
Expand Down

0 comments on commit 2194761

Please sign in to comment.