I'm using this code to save a MultiPartFile (file) to the filesystem.
It works fine and saves the file BUT when I use IE to upload the file the filename includes the full local windows path so files are being saved with names like D:\my\files\thefile.gif instead of thefile.gifCode:file.transferTo(new File("/path/to/dir/" + file.getOriginalFilename()));
Uploading with Firefox does not have this problem. I know the Javadoc mentions that this may happen in Opera. Has anyone had this problem (and hopefully solved it) before?