Hello Folks,
I am trying to start a process via REST call and body kept as form-data and upload a json file but I am getting
“type”: “NotSupportedException”,
“message”: “HTTP 415 Unsupported Media Type”
Hi @shoebsayyed118
I might be wrong but according to the documentation the call you’re trying to use supports application/json content type only and the error itself is about Unsupported Media Type.
Is there a specific reason why you can’t use application/json?
I also noticed that you’re trying to send the BPMN file. It does not seem to be allowed as well.
Could you please explain your use case in more detail and what you’re trying to achieve?
Sure,
I am trying to start a process which i having a script task which excepts a json payload, which will be parsed In that task. for now I am sending it via cmaunda variable and the json is huge like 350 json object in it which is impacting database throwing exception as we can only store 4000 char in VARCHAR type .
So I decided to start it via uploading a file
so after you comment I saw that we cannot start a process like this
but in camunda invoice example it uses invoice to be uploaded right? how it is done ?
In my opinion (not necessarily correct), this is a bad practice to use such big uploads and it would be better to store big uploads somewhere and access them by some reference.
There could be different approaches, for instance, storing the data in some database or some file storage service like AWS S3 / Azure Blob Storage / Google Cloud Storage.