0

Trying to upload multiple files in swagger api. While uploading single file with

files:
    type: string
    format: binary

Getting file in req.files, but when trying for multiple files with

files:
   type: array
    items:
      type: string
      format: binary

req.files = null and there is files: '[object file],[object file]' in req.body

using nodejs with express

jaswanth
  • 1,759
  • 2
  • 10
  • 16

1 Answers1

1

Uploading an array of files is supported in Swagger UI 3.26.0+ and Swagger Editor 3.10.0+. You need to upgrade your Swagger UI to the latest version.

Earlier versions had an issue where the string [object file],[object file] was sent instead of the actual files.

Helen
  • 87,344
  • 17
  • 243
  • 314