【发布时间】:2013-09-20 08:59:28
【问题描述】:
struts的FormFile接口的getFileName()方法是否对文件名进行过滤?
Struts documentation for method getfileName
我的意思是,在 Struts documentation for upload 之后,“行动中需要什么”部分。
如果用户提供的文件名是"../../../toto.ext",那么myFile.getFileName() 是返回"toto.ext" 还是"../../../toto.ext"。
根据Struts documentation for method getfileName,“返回此文件的文件名。这是文件的基本名称,由用户在上传文件时提供。”,它是应该返回"../../../toto.ext"。但我不太确定。
你能告诉我这个问题吗?
【问题讨论】:
标签: java jsp file-upload upload struts