title: Getting 400 Bad Request error when sending form data Angular
body: <p>I am getting a 400 Error when sending a form data to my node.js backend. It also gives me this error: <code>Unexpected token - in JSON at position 0</code> I know that it isn't a problem with my node app because I can send the same data using Postman and it works perfectly.</p>
  <p>This is my Angular method:</p>
  <pre><code>      const formData = new FormData();
        formData.append(&quot;db&quot;, $scope.item.db.toLowerCase());
        formData.append(
          &quot;collection&quot;,
          $(&quot;#collection&quot;)
            .find(&quot;option:selected&quot;)
            .text()
            .toLowerCase()
        );
        formData.append(&quot;owner&quot;, JSON.parse(sessionStorage.getItem(&quot;user&quot;))._id);
        formData.append(&quot;name&quot;, $scope.item.name);
        formData.append(&quot;description&quot;, $scope.item.description);
        formData.append(&quot;year&quot;, $scope.item.year);
        formData.append(&quot;photo&quot;, $(&quot;#picture&quot;)[0].files[0]);
        $http.post(&quot;items/uploadItem&quot;, formData).then(function(response) {
          console.log(response.data);
        });
      };
  </code></pre>
  <p>If you need any more information, please leave a comment and I would be happy to provide it.</p>