BAEL - 326 - Add section about file upload with additional form data (#1105)

This commit is contained in:
Vivek Kumar
2017-02-10 18:13:32 +05:30
committed by Grzegorz Piwowarek
parent 22d26048b6
commit a04c421305
4 changed files with 150 additions and 0 deletions
@@ -0,0 +1,35 @@
package com.baeldung.model;
import org.springframework.web.multipart.MultipartFile;
public class FormDataWithFile {
private String name;
private String email;
private MultipartFile file;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public MultipartFile getFile() {
return file;
}
public void setFile(MultipartFile file) {
this.file = file;
}
}