Hello everyone,
I've run into a snag while trying to upload an image using the HTTP PUT method. My main issue lies with the Content-Type header in the HTTP request.
Despite setting the header to Content-Type:image/jpg, the server doesn't seem to acknowledge this and defaults to Content-Type: application/octet-stream. This is perplexing because I need the server to recognize the payload as an image to be processed correctly.
Has anyone encountered a similar issue or have any insights on why the header might not be updating? Here are the things I've confirmed so far:
The header is correctly set to Content-Type:image/jpg.
The server is currently handling it as Content-Type: application/octet-stream instead.
Interestingly, when I use Postman to send the request, everything works as expected, which leads me to believe that the issue is not with the server but possibly with the way the request is being sent from my application.
Any advice, insights, or suggestions would be greatly appreciated!
--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/46498e0e-6e42-4bb6-b02b-250c32f52f6an%40googlegroups.com.