I’m trying up POST jpg-files via REST API but doing it from UIPath results in an image-file that can’t be read. The server receives the file but as “mime”: “application/octet-stream”,
If I do the same operation from Postman the file is perfectly posted as “mime”: “image/jpeg”.
I can not understand what is wrong. I’m told to use form data but when adding that to the headers (Content-Type, Direction: In, Type: String, Value: “multipart/form-data”) I end up with an error message saying:
400 {“error”:“bad_request”,“error_description”:“No uploaded file found. Please upload the file using the multipart/form-data specification”}
Currently I use no headers and no parameters. Only Body format set to multipart/form-data
I’ve read many threads with similar issues but nobody seems to have sorted this out. Anyone succeeded? Since it works so well from Postman I’m starting to think that HTTP Request may be buggy.
12 posts - 6 participants