Skip to content

Commit

Permalink
修复file name乱码
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou-hao committed Dec 1, 2017
1 parent 091aa4b commit d659dec
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ public String upload(@RequestParam(value = "upfile", required = false) Multipart
String path = fileService.saveStaticFile(file.getInputStream(), System.currentTimeMillis() + suffix);
State state = new BaseState(true);
state.putInfo("size", file.getSize());
state.putInfo("title", file.getOriginalFilename());
state.putInfo("title",fileName);
state.putInfo("url", path);
state.putInfo("type", suffix);
state.putInfo("original", file.getOriginalFilename());
state.putInfo("original",fileName);
return state.toJSONString();
}

Expand Down

0 comments on commit d659dec

Please sign in to comment.