Swagger-ui: MultipartFile[] doesn't show correctly

Created on 18 Jan 2017  Â·  6Comments  Â·  Source: swagger-api/swagger-ui

Most helpful comment

Is any update on this issue?

All 6 comments

The spec doesn't allow multiple file uploads, so we can't really support it.

Guys I see in UI this when I have parameter @RequestPart(value = "file", required = true) List<MultipartFile> file,
multifiles
So it seems like supported, but swagger ui not send two files when I press execute.

When it will be supported?

Is any update on this issue?

@webron Hi , I can choose MultipartFile[] in the swagger UI. But it doesn't work on the controller, I get empty in the request.
But when i use postman to send my request, it work well.
My swagger-ui version is 2.9.2 .

is any update on this issue ?

not yet.
but i create this repo, to handle spring file request with diff way.
https://github.com/NABEEL-AHMED-JAMIL/file-uploader

On Mon, Dec 9, 2019 at 9:48 PM HichamOUAHIDI notifications@github.com
wrote:

is any update on this issue ?

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/swagger-api/swagger-ui/issues/2617?email_source=notifications&email_token=AFYSKRNNB64GXMROG5UH4ZLQXZZETA5CNFSM4C4ZUUTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGJ3HKQ#issuecomment-563327914,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFYSKRLCRLTRGZV3VU764FTQXZZETANCNFSM4C4ZUUTA
.

Was this page helpful?
0 / 5 - 0 ratings