title: Not able to save the image to disk in linux using springboot
body: <p>I am trying to save images to disk using spring boot and angular, however there are no 
  exceptions thrown in the below code nor any errors, but i cannot see image in the required folder</p>
  
  <pre><code>@RestController
  @CrossOrigin(origins = "http://localhost:4200")
  public class ImageController {
          @RequestMapping(value = "/postImages", method = RequestMethod.POST, consumes = 
                          MediaType.MULTIPART_FORM_DATA_VALUE )
          public ResponseEntity&lt;Void&gt; uploadPolicyDocument(@RequestParam("image") 
                                                            List&lt;MultipartFile&gt; multipartFile)
         {
          String OUT_PATH = "home\\krishnachaitanya\\Pictures\\testing\\";
  
      try {
          for(MultipartFile mf: multipartFile)
          {
              byte[] bytes = mf.getBytes();
              Path path = Paths.get(OUT_PATH+ mf.getOriginalFilename());
              Files.write(path, bytes);
          }
  
      } catch (IOException e) {
          return new ResponseEntity&lt;&gt;(HttpStatus.BAD_REQUEST);
      }
      return ResponseEntity.ok().build();
    }
  </code></pre>