I'd like to know if it's possible to have a post endpoint that can accept a json payload that contains a multipartfile as well as other data. e.g. my body object would look like:
public class Bio {
private Long id;
private String firstName;
private MultipartFile imageFile;
}
A separate but related question is that in the springboot doc example for uploading a file, https://spring.io/guides/gs/uploading-files/, the file is part of the request path rather than the payload. This seems strange to me so is there a way to have the file bind to the request body?