1

i have an rest ws and use PostMapping ...

@PostMapping(value = "/upload", consumes = {"multipart/form-data"})
public Boolean uploadFile(@ModelAttribute UploadModel model, HttpServletRequest servletRequest) {...}

and my uploadModel is :

public class UploadModel extends RestRequest implements Serializable {
    private MultipartFile[] files;

    public MultipartFile[] getFiles() {
        return files;
    }

    public void setFiles(MultipartFile[] files) {
        this.files = files;
    }}

i need to upload my images (multi file in one request) from android device with show progress ... can anyone help me ?

1 Answer 1

2

Here is an example how to do it (Link). Also, in the end you can find a link to

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you ... but it's not that i mean .... i ned send files with other parameters ... if you see , my upload model extend other class with params...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.