NutzCN Logo
问答 上传图片长名字异常........
发布于 2469天前 作者 menglinxi 1658 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk
2018-03-20 17:30:28,208 org.nutz.mvc.upload.FastUploading.parse(FastUploading.java:133) DEBUG - Upload File info: FilePath=[null],fieldName=[appid]
2018-03-20 17:30:28,208 org.nutz.mvc.upload.FastUploading.parse(FastUploading.java:214) DEBUG - Found a param, name=[appid] value=[5ee4e47a083847649cca9acba5262c2f]
2018-03-20 17:30:28,208 org.nutz.mvc.upload.FastUploading.parse(FastUploading.java:133) DEBUG - Upload File info: FilePath=[null],fieldName=[name]
2018-03-20 17:30:28,208 org.nutz.mvc.upload.FastUploading.parse(FastUploading.java:214) DEBUG - Found a param, name=[name] value=[himg1]
2018-03-20 17:30:28,208 org.nutz.mvc.upload.FastUploading.parse(FastUploading.java:133) DEBUG - Upload File info: FilePath=[83924fdeb5f6681869315b3e099731e3.jpeg],fieldName=[Filedata]
2018-03-20 17:30:28,209 org.nutz.mvc.upload.FastUploading.parse(FastUploading.java:137) DEBUG - Upload Info: name=83924fdeb5f6681869315b3e099731e3.jpeg,content_type=image/jpeg
2018-03-20 17:30:28,210 org.nutz.mvc.adaptor.AbstractAdaptor.adapt(AbstractAdaptor.java:231) INFO  - Adapter Error catched , but I found AdaptorErrorContext param, so, set it to args, and continue
org.nutz.mvc.upload.UploadUnsupportedFileNameException: Unsupport file name '83924fdeb5f6681869315b3e099731e3.jpeg' 

    @AdaptBy(type = UploadAdaptor.class, args = {"ioc:materialUpload"})
    @At("/material")
    @Ok("json")
    @RequiresAuthentication
    public Object material(@Param("..")Map<String,Object> params, HttpServletRequest req, AdaptorErrorContext err) {
        String basePath = Globals.MyConfig.get("fileserver");
        if (err != null && err.getAdaptorErr() != null) {
            return Result.error(-3, "tracking.material.uploadfile.err");
        }
}
3 回复

不支持这种类型的图片格式吧

upload.js里限制了后缀吧

嗯,js里限制后缀了。
把后缀加上就好了。

添加回复
请先登陆
回到顶部