Quantcast
Channel: UiPath Community Forum - Topics tagged error
Viewing all articles
Browse latest Browse all 4384

POST jpeg via HTTP Request - corrupted file

$
0
0

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.

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>