title: angular spring boot request with image error
body: <p>So I am trying to send from Angular to my spring boot backend a image along with some text in a x-wwww-form-urlencoded way.
  Here is the angular service method:</p>
  <pre><code>img(tags:HTMLInputElement, des:HTMLInputElement, selectFile){
      let url = &quot;http://localhost:8080/api/v1/add_item&quot;
  
      const body = new HttpParams()
      body.set(&quot;img&quot;, selectFile)
      body.set(&quot;tags&quot;, tags.value)
      body.set(&quot;des&quot;, des.value)
  
      return this.http.post&lt;Isecurity[]&gt;(url, body.toString(),{
        headers:new HttpHeaders()
        .set('Content-Type', 'application/x-www-form-urlencoded')
      } )
    }
  </code></pre>
  <p>and on the rest side:</p>
  <pre><code>@PostMapping(&quot;add_item&quot;)
      @CrossOrigin
      public  Map&lt;String, Boolean&gt; add_item(@RequestParam MultipartFile img, @RequestParam String tags, @RequestParam String des){
          Map&lt;String, Boolean&gt; values = new HashMap&lt;&gt;();
          values.put(&quot;response&quot;, true);
          return values;}
  </code></pre>
  <p>I think it is, because of the @RequestParam tags, because the only response, which I get is 500 server error...</p>