Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple input type=file #45

Closed
cryzer12 opened this issue Aug 6, 2019 · 4 comments
Closed

multiple input type=file #45

cryzer12 opened this issue Aug 6, 2019 · 4 comments

Comments

@cryzer12
Copy link

cryzer12 commented Aug 6, 2019

Hi, I have a question, is it possible to use multiple input type = file? like in swagger?
image

@mrin9
Copy link
Collaborator

mrin9 commented Aug 11, 2019

ok will give it a try. allow us a little time

@mrin9
Copy link
Collaborator

mrin9 commented Sep 1, 2019

can you share a minimal spec to generate the above UI in swagger ?

@croudet
Copy link

croudet commented Nov 27, 2019

Looks like Multiple File Upload using the same property name is not working:

  /upload/receive-streaming-iterable:
    post:
      tags:
      - Upload
      operationId: streamingIterable
      parameters: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                files:
                  type: array
                  nullable: false
                  items:
                    type: string
                    format: binary
        required: true
      responses:
        default:
          description: streamingIterable default response
          content:
            text/plain:
              schema:
                type: string

Reference:

requestBody:
  content:
    multipart/form-data:
      schema:
        properties:
          # The property name 'file' will be used for all files.
          file:
            type: array
            items:
              type: string
              format: binary

Screen Shot 2019-11-27 at 15 30 37

@mrin9
Copy link
Collaborator

mrin9 commented Jan 12, 2020

this has been taken care in release 7.1.0
example to demonstrate various ways to upload single/multiple files can be found here
https://rapidocweb.com/examples/file-upload.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants