Bugs item #560217, was opened at 2002-05-24 12:18 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=104754&aid=560217&group_id=4754
Category: Tapestry Group: bug >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Richard Kim (rkimchi) Assigned to: Howard Lewis Ship (hship) Summary: Upload problems depending on browser Initial Comment: I have noticed that when you call getFileName() from the IUpload interface you will get different results depending on the browser you are uploading a file from. For example, IE will return the entire path of the file, whereas Mozilla will return just the file name. To keep this consistent, I think this method should only return the file name without path information. I have attached a revised version of the UploadPart class which implements the IUpload interface which removes path information before returning the file name in the getFileName() method. If my change is in the inappropriate place, can you let me know where the fix should go? Thanks, Richard Kim Systems Developer Communicopia Inc. (416) 364-8998 x2234 [EMAIL PROTECTED] ---------------------------------------------------------------------- >Comment By: Howard Lewis Ship (hship) Date: 2002-05-28 13:34 Message: Logged In: YES user_id=26816 Added a new method, getFilePath() that returns the full path, and redefined getFileName() to return just the name portion of the full path. ---------------------------------------------------------------------- Comment By: Howard Lewis Ship (hship) Date: 2002-05-24 15:17 Message: Logged In: YES user_id=26816 Another option would be to have two methods: one guaranteed to return just the file name, the other returning the full path (or whatever) specified by the browser. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=104754&aid=560217&group_id=4754 _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ Tapestry-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/tapestry-developer
