How to use the @tsed/multipartfiles.MulterFileSize function in @tsed/multipartfiles

To help you get started, we’ve selected a few @tsed/multipartfiles examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TypedProject / ts-express-decorators / test / integration / app / controllers / calendars / CalendarCtrl.ts View on Github external
@Header("x-token-test", "test")
  @Header("x-token-test-2", "test2")
  @Status(200)
  @ContentType("application/xml")
  @Deprecated()
  testResponseHeader(@Request() request: Express.Request) {
    return "";
  }

  @Post("/documents")
  testMultipart(@MultipartFile("files") files: any[]) {
    return files;
  }

  @Post("/documents/1")
  @MulterFileSize(2048)
  testMultipart2(@MultipartFile("file1") file: any) {
    console.log("====>", file);

    return "DONE";
  }
}

@tsed/multipartfiles

Multer package for Ts.ED framework

MIT
Latest version published 4 years ago

Package Health Score

53 / 100
Full package analysis

Similar packages