Skip to content
This repository was archived by the owner on Dec 31, 2024. It is now read-only.
This repository was archived by the owner on Dec 31, 2024. It is now read-only.

How can i upload multi file. #68

@JokerSun

Description

@JokerSun

In my case , i want to upload multi file ,but i get exception java.lang.IllegalStateException: Method has too many Body parameters,my code like that

@FeignClient(configuration = MultipartFormDataConfig.class)
public class Demo{
	@PostMapping(
		path = "/upload",
		consumes = org.springframework.http.MediaType.MULTIPART_FORM_DATA_VALUE
	)
	Response uploadFile(
		@RequestPart MultipartFile file1,
		@RequestPart MultipartFile file2
	);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions