Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] encourting "Path problem" when trying to save a uploaded file , but work well in tomcat---Jetty 9.2.9.v20150224

Hi ,every body
   example code like this:
   
  // mulitpartFiletype is org.springframework.web.multipart.MultipartFile
   mulitpartFile.transferTo(new File("G:\\somedir/somefile"));

   this code work well with Tomcat
 
   but ,when with Jetty , raises java.io.FileNotFoundException: D:\projects\project1\target\tmp\G:\ somedir/somefile

   the problem is file path is prefixed with the tempolary path
   Why Jetty will prefix an absolute path with the tempolary path? Can I avoid it?

   hoping someone can help me.thanks
   


Back to the top