@POST // 只处理post的请求
public ActionResult postUpload() {
BeatContext beat = beat();
ClientContext client = beat.getClient();
Preconditions.checkState(Strings.isNullOrEmpty(client.form("company")));
Preconditions.checkState(Strings.isNullOrEmpty(client.form("address")));
Preconditions.checkState(Strings.isNullOrEmpty(client.form("file")));
client.queryString("name");
Preconditions.checkState(Strings.isNullOrEmpty(client.queryString("name")));
Preconditions.checkState(Strings.isNullOrEmpty(client.queryString("phone")));
Preconditions.checkState(Strings.isNullOrEmpty(client.queryString("submit")));
Preconditions.checkState(Strings.isNullOrEmpty(client.queryString("file")));
Upload upload = client.getUpload("file");
beat.getModel()
.add("company", client.queryString("company"))
.add("address", client.queryString("address"))
.add("name", client.form("name"))
.add("phone", client.form("phone"))
.add("submit", client.form("submit"))
.add("upload", upload);