title: How to choose path to a file rather than uploading the file?
body: <p>I want to POST a string which is the path to a file rather than uploading the file (multipart). </p>
  
  <p>This code uploads the file:</p>
  
  <pre><code>@RequestMapping(method=RequestMethod.POST, value="/index")
      public void singleFileUpload(@RequestParam("file") MultipartFile file,
                                     RedirectAttributes redirectAttributes) throws IllegalStateException, IOException {
  
       .
       .
      }
  
  
  &lt;form method="POST" action="index" enctype="multipart/form-data"&gt;
      &lt;input type="file" name="file" /&gt;&lt;br/&gt;&lt;br/&gt;
      &lt;input type="submit" value="Submit" /&gt;
  &lt;/form&gt;
  
  </code></pre>
  
  <p>This is used to upload a file, but I just want to obtain the path to a file. How can I do that? Please help.</p>