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

Mutlipart file upload support #105

Open
asikpradhan opened this issue Jul 18, 2019 · 3 comments
Open

Mutlipart file upload support #105

asikpradhan opened this issue Jul 18, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@asikpradhan
Copy link

asikpradhan commented Jul 18, 2019

Trying to document a multipart file upload does not seem to generate any request part related documentation. For instance,

mockMvc.perform(RestDocumentationRequestBuilders.fileUpload("/assets)
                .file("file",
                        getSystemResourceAsStream("fixtures/assets/asset.jpg").readAllBytes()))
                .andExpect(status().isOk()).andDo(document("asset-post",
                        resourceDetails().description("Post an asset"),
                        requestParts(
                                partWithName("file").description("File to be uploaded")
                        ))
@ozscheyge ozscheyge added the enhancement New feature or request label Feb 28, 2020
@Jeeppler
Copy link

Jeeppler commented Dec 2, 2020

Same problem here.

@blbulyandavbulyan
Copy link

I have the same problem, I use spring boot 3.1.3 and java 17

@Jinwook94
Copy link

Same problem.

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

No branches or pull requests

5 participants