Hi everyone:
It seem that there is a bug in IUploadFile component in Tapestry. The "IUploadFile.getFileName()" and "IUploadFile.getFilePath()" return the same value! My code is:
private String processUploadFile(IUploadFile
file){
log.debug("############ Get
upload File: "+getUploadFile());
String
returnPath=null;
if (getUploadFile() != null)
{
log.debug("############ Get upload
getFileName:
"+getUploadFile().getFileName());
log.debug("############
Get upload getFilePath: "+getUploadFile().getFilePath());
The "getFileName" and "getFilePath" all return "D:/images/test/test.jpg"!
But if I deploy the tapestry app in windows,there is no problem.If the tapestry run in Linux(Suse),the getFileName return wrong value. How to fix it?
使用 MSN Messenger 与联机的朋友进行交流 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]