title: File uploading along with other data in Swagger NestJs
body: <p>I want to send file along with JSON</p>
  <pre><code>{
      &quot;comment&quot; : &quot;string&quot;,
      &quot;outletId&quot; : 1
  }
  </code></pre>
  <p>The help I got from Documentation is</p>
  <pre><code>requestBody:
      content:
        multipart/form-data:
          schema:
            type: object
            properties:
              orderId:
                type: integer
              userId:
                type: integer
              fileName:
                type: string
                format: binary
  </code></pre>
  <p>I don't know where to put this schema. I have tried putting it inside <code>@ApiProperty()</code> in DTO as well as in <code>@ApiOperations</code> but could not resolve the issue.</p>
  <p>Below is the function I want to capture file content in.</p>
  <pre><code>@Post('/punchin')
  @ApiConsumes('multipart/form-data')
  @ApiOperation({ summary: 'Attendance Punch In' })
  @UseInterceptors(CrudRequestInterceptor, ClassSerializerInterceptor, FileInterceptor('file'))
  @ApiImplicitFile({ name: 'file' })
  async punchInAttendance( @Body() body: PunchInDto, @UploadedFile() file: Express.Multer.File ): Promise&lt;Attendance&gt; {
      const imageUrl = await this.s3FileUploadService.upload(file)
      console.log(body, imageUrl)
      return await this.service.punchInAttendance({
        comment: body.punchInComment,
        outletId: body.outletId,
        imgUrl: imageUrl,
      })
    }
  </code></pre>