79559741

Date: 2025-04-07 11:24:49
Score: 2.5
Natty:
Report link

You can send multiple sets of file + metadata by using an array format in your form-data keys like files[0].file, files[0].name, files[1].file, etc., and update your DTO to handle an array of file metadata objects. Then, in your controller, use @Body() for metadata and @UploadedFiles() with @UseInterceptors(FilesInterceptor(...)) for files.

Reasons:
  • No code block (0.5):
  • User mentioned (1): @Body
  • User mentioned (0): @UploadedFiles
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: AREMU