You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem is that attach() inherently seem to update the content type to multipart form data in spite of me trying to over ride it with image/jpeg.
Is there something we can do to override this behaviour of attach() or is there any other way i can post binary data to my function.
Thanks
The text was updated successfully, but these errors were encountered:
vaibhavpuri
changed the title
can not post a binary file with content type as 'image/jpeg' using attach attach()
can not post a binary file with content type as 'image/jpeg' using attach()
Sep 13, 2017
I want to pass the file as binary to one of my functions which i want to write the test around using chai http, below is the code:
Problem is that attach() inherently seem to update the content type to multipart form data in spite of me trying to over ride it with image/jpeg.
Is there something we can do to override this behaviour of attach() or is there any other way i can post binary data to my function.
Thanks
The text was updated successfully, but these errors were encountered: