Browse Source

fix: attachment controller changes corrections

pull/6894/head
Pranav C 1 year ago
parent
commit
caa2441140
  1. 4
      packages/nocodb/src/controllers/attachments.controller.ts

4
packages/nocodb/src/controllers/attachments.controller.ts

@ -36,7 +36,7 @@ export class AttachmentsController {
) { ) {
const attachments = await this.attachmentsService.upload({ const attachments = await this.attachmentsService.upload({
files: files, files: files,
path: req.query?.path as string, path: req.query?.path?.toString(),
req, req,
}); });
@ -48,7 +48,7 @@ export class AttachmentsController {
@UseInterceptors(UploadAllowedInterceptor) @UseInterceptors(UploadAllowedInterceptor)
@UseGuards(MetaApiLimiterGuard, GlobalGuard) @UseGuards(MetaApiLimiterGuard, GlobalGuard)
async uploadViaURL( async uploadViaURL(
@Body() body: any, @Body() body: Array<AttachmentReqType>,
@Query('path') path: string, @Query('path') path: string,
@Request() req: any, @Request() req: any,
) { ) {

Loading…
Cancel
Save