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

Array of files in input doesn't work in GUI #801

Open
andreazerbini opened this issue Apr 15, 2024 · 0 comments
Open

Array of files in input doesn't work in GUI #801

andreazerbini opened this issue Apr 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@andreazerbini
Copy link

Describe the bug

When we have an API that requires a list of documents in input, it's impossible to upload them.

Expected behavior

The upload of multiple files can be done via Docusaurus GUI.

Current behavior

From Docusaurus is impossible to upload multiple files and to invoke these types of API endpoints.

Steps to reproduce

Pre-requirements: having an endpoint API that can be used to upload an array of files.
For example, having this type of OpenApi properties:
properties:
files:
type: array
description: List of documents to upload async
items:
type: string
format: binary

Screenshots

Example of docusaurus' view of a single file as input (it works!):
onefile_upload_in_docusaurus_ae64eaa9-65c9-4b19-8e78-40811a0b4bd5

Example of docusaurus' view of an array of files as input (it doesn't works):
array_of_files_upload_in_docusaurus_423ae299-cb4a-4cb7-b2eb-4c9262e671c1

Example of Swagger editor of OpenAPI with the same OpenAPI defined above (it works):
SWAGGER_OPEN_API_EDITOR_WORKS_Immagine 2024-04-15 172301

here is possible to upload multiple files as array.

Your Environment

  • Version used: v3.0.0-beta.4 (Docusaurus version 3.1.0)
  • Environment name and version:
    • Docusaurus side: Chrome Browser 122.0.6261.71 (Official build 64 bit);
    • BE side: SpringBoot BE engine and NGINX web server
  • Operating System and version (desktop or mobile): Windows 11 Desktop
@andreazerbini andreazerbini added the bug Something isn't working label Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant