上传.jpeg图片,会报错
org.nutz.mvc.upload.UploadUnsupportedFileNameException: Unsupport file name '计划项目2.jpeg'
@AdaptBy(type = UploadAdaptor.class, args = {"ioc:imageUpload"})
@POST
@At
@Ok("json")
//AdaptorErrorContext必须是最后一个参数
public Object image(@Param("file") TempFile file,@Param("carInfoId") String carInfoId, HttpServletRequest req, AdaptorErrorContext err) {
try {
String sureFilePath = FileUtils.CreateFile(file);