Hi Daors,

What is the type of the uploaded file? Are all types failing?

Jacques


Le 08/07/2021 à 13:30, Daors a écrit :
Hello community of OFBiz hope you're doing good,

There was a issue that I would like to address and that is uploading 
images/document from Postman,
I'm using the ofbiz-rest-impl plugin for exposing current ofbiz services as 
rest, I exposed one of the services for uploading content (documents,images) I 
encoded the url and then trying to send a request from Postman. F.E:

{{localhost}}/rest/services/uploadContentService

with a POST method and have two attributes inParams=
where there are encoded parameters and the other is
uploadedFile which is a file, but when I send the request I get this error:

{
     "statusCode": 415,
     "statusDescription": "Unsupported Media Type",
     "errorMessage": "HTTP 415 Unsupported Media Type"
}

I researched about this problem and saw that there are some cases where people 
said that you have to put jersey mediapart dependency to project in order to 
work but I checked it and is already there.

Thank you for your time,
Have a great day,
Daors



Reply via email to