hamedh.1990
hamedh.1990

Reputation: 179

android upload multipart with progress

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 ?

Upvotes: 1

Views: 78

Answers (1)

Dmytro Ivanov
Dmytro Ivanov

Reputation: 1310

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

Upvotes: 2

Related Questions