title: Put request with file and json body
body: <p>I create a POST Rest API with @RequestParam and it works with : </p>
  
  <pre><code>@PostMapping("/shop-menu")
  @PreAuthorize("@accessChecker.hasAccessToWebservice(#request)")
  public ResponseEntity&lt;EntiteShopMenuDTO&gt; addShopMenu(HttpServletRequest request,
                                                         @RequestParam("numeroLicence") String numeroLicence,
                                                         @RequestParam("ordre") Integer ordre,
                                                         @RequestParam("titre") String titre,
                                                         @RequestParam("url") String url,
                                                         @RequestParam("logo") MultipartFile logo) throws URISyntaxException, CustomException, IOException {
  </code></pre>
  
  <p>and I use Postman for test : </p>
  
  <p><a href="https://i.stack.imgur.com/EopRT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EopRT.png" alt="enter image description here"></a></p>
  
  <p>That works fine.</p>
  
  <p>Now I want the same thing but PUT Request : </p>
  
  <pre><code>@PutMapping("/shop-menu/{numeroLicence}")
  @PreAuthorize("@accessChecker.hasAccessToWebservice(#request)")
  public ResponseEntity&lt;EntiteShopMenuDTO&gt; updateShopMenu(HttpServletRequest request,
                                                            @PathVariable String numeroLicence,
                                                            @RequestParam("test") String test,
                                                           @RequestParam(value = "logoFile", required = false) MultipartFile logoFile) throws CustomException, IOException {
  </code></pre>
  
  <p>And with Postman to try : </p>
  
  <p><a href="https://i.stack.imgur.com/qj1ki.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qj1ki.png" alt="enter image description here"></a></p>
  
  <p>And result is : </p>
  
  <pre><code>{
  "type": "https://www.jhipster.tech/problem/problem-with-message",
  "title": "Bad Request",
  "status": 400,
  "detail": "Required String parameter 'test' is not present",
  "path": "/api/shop-menu/BJ3-M1",
  "message": "error.http.400"
  }
  </code></pre>
  
  <p>I try the same thing with json body for object param instead of test param, and same result.</p>
  
  <p>With Curl it works  : </p>
  
  <pre><code>curl -X PUT --header 'Content-Type: multipart/form-data' --header 'Accept: application/json' --header 'Authorization: Bearer &lt;MY_TOKEN&gt;' {"type":"formData"} 'http://localhost:8080/api/shop-menu/BJ3-M1?test=TOTO'
  </code></pre>
  
  <p>Can you help me please?</p>