Mastering Development

Why I am receiving a 400 bad request status when trying to upload image through to react to post to DRF createAPIView?

I am trying to post images to my drf API using react dropzone. However, when I try to submit I get the 400 bad request error. It has to do with my endpoint in axios when I call handleSubmit(). When I look at the network tools in the browser console, Headers shows that FormData is […]