Closed Yoronex closed 1 month ago
Implemented fix in https://github.com/lukeautry/tsoa/pull/1620.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
Is there anything more I can do get this PR approved?
Sorting
I'm submitting a ...
I confirm that I
Expected Behavior
The docs about file uploads suggest that it is possible to use a combination of
@UploadedFiles()
and@UploadedFile()
in the example.Current Behavior
A multer error is thrown and no HTTP response is sent to the client (in Swagger UI, the endpoint loads forever).
Possible Solution
--
Steps to Reproduce
Context (Environment)
Version of the library: 6.2.1 Version of NodeJS: 20.9.0
Detailed Description
For my project, I wish to create and endpoint that takes multiple files as input. These files need to be organized, so I wish to use a combination of
@UploadedFile()
and@UploadedFiles()
parameters for my endpoint. PR https://github.com/lukeautry/tsoa/pull/1541 implemented multiple files into separate fields, but the test case at https://github.com/lukeautry/tsoa/blob/1c4dfbf4e7dd8c3df716989d83c43caa9ff50559/tests/fixtures/controllers/postController.ts#L71 only tests multiple fields withUploadedFile()
(the singular, not the plural). Indeed, if I use two fields of the singular version, the endpoint works fine.Breaking change?