google-code-export / nutz

Automatically exported from code.google.com/p/nutz
Apache License 2.0
1 stars 1 forks source link

上传文件 获取本地文件名 tempFile.getMeta().getFileLocalName()可能不正确的问题 #514

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
问题产生的条件:
 服务端(tomcat)跑在linux下, 在windows下通过浏览器上传文件。java代码中调用
tempFile.getMeta().getFileLocalName()获取本地文件名可能为文件的全�
��径名称。

发生问题的调用代码:
@At("/upload")
public String upload(@param("tmpFile")TempFile tempFile){
  System.out.println(tempFile.getMeta().getFileLocalName());
...
}

问题的详细说明:
打印结果可能为:“C:\abc\def.txt”,而不是def.txt

异常堆栈:
无

相关日志:
无

Original issue reported on code.google.com by maiger...@gmail.com on 18 Aug 2011 at 3:10

GoogleCodeExporter commented 9 years ago
fixed

Original comment by wendal1985@gmail.com on 23 Aug 2011 at 8:01

GoogleCodeExporter commented 9 years ago

Original comment by wendal1985@gmail.com on 6 Sep 2011 at 6:29