They return different values - it's completely up to the browser what to send.
http://opencomponentry.com:8080/workbench/Upload,$Border.pageLink.sdirect?sp=SUpload Firefox/ other browsers have this crazy idea that sending the local filesystem path is a security vulnerability while ie is happy to send everything. So - it's expected behavior and there's nothing anyone can do about it. On 5/7/07, li li <[EMAIL PROTECTED]> wrote:
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 <http://g.msn.com/8HMBCNCN/2737??PS=47575> 与联机的朋友进行交流 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com