**[Aleš Laňar](https://jira.spring.io/secure/ViewProfile.jspa?name=hrabosch)** opened **[SPR-15257](https://jira.spring.io/browse/SPR-15257?redirect=false)** and commented I found problem with `StandardMultipartHttpServletRequest.transferTo(File dest)`. This method calls write method with destination path of given file: ``` @Override public void transferTo(File dest) throws IOException, IllegalStateException { this.part.write(dest.getPath()); } ``` But if I'll check write method of jetty-util, it wants only String fileName and problem is in this part: ``` //part data is only in the ByteArrayOutputStream and never been written to disk _file = new File (_tmpDir, fileName); ``` Result is that there is _tmpDir (path of file) concated with filename where is actually complete path, so path is duplicated. --- **Affects:** 4.2.6 **Issue Links:** - #17251 Document how MultiPartFile.transferTo works with Servlet 3 - #19180 CommonsMultipartFile.getOriginalFilename() should be able to preserve header-specified filename as-is - #20304 Revise FileSystemResource / FileSystemUtils / FileCopyUtils towards NIO.2 **Referenced from:** commits https://github.com/spring-projects/spring-framework/commit/2233ec04ff4f9dd7c4cfeabeb4586685701421bf, https://github.com/spring-projects/spring-framework/commit/b73153cd7c88acf89efcc48500af8f971d6cac83