Android mimics Wechat, which can take photos, select image libraries, and upload multiple patterns using Retrofit technology.

How to use: see blog

Blog.csdn.net/u010046908/…

Operation effect of the project:

The server side receives the file action

UploadFile.java

@Controller public class UploadFile extends ActionSupport {

/** * */ private static final long serialVersionUID = 1L; private File[] file; // File array private String description; Public File[] getFile() {return File; } public void setFile(File[] file) { this.file = file; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } @action ("/upload") public void upload() {system.out.println (" Upload file ="+ array.toString (file)); System.out.println(" description ="+description); }Copy the code

}