Open AbhijitKurane opened 1 year ago
I have the same issue
Have you tried adding 'Content-Type': 'multipart/form-data'
to header? It has 'Content-Type': 'application/json'
by default even if you use FormData
Have you tried adding
'Content-Type': 'multipart/form-data'
to header? It has'Content-Type': 'application/json'
by default even if you use FormData
This worked.
Below is the code,
This fails to work on version 3.0.1 with http error code 400 bad request but the same works on version 2.1.6. I did checked for logs in addAsyncRequestTransform method. For both version 2.1.6 as well as 3.0.1 the request json formed is same but the image gets uploaded successfully on version 2.1.6 and fails on 3.0.1 with http error code 400 bad request.