Share ideas, ask questions, and get feedback about developing for ProcessMaker
Forum rules: Please post new questions under "Developing processes & programming" for ProcessMaker 2 or 3.
#785153
Hi All,

We have dynaform in that file upload control is there. Anyone know how to upload file using REST API.
For example:- other control we are posting values while calling REST API as below screenshot :-
[img]
Capture.PNG
Capture.PNG (30.55 KiB) Viewed 4684 times
[/img]

by calling :- POST /api/1.0/{workspace}/cases
and post paramter as varaibles. In case of file upload. how we will post as parameter?
#785186
Hello Mohinish:

You can upload a new Input Document file to a specified case using REST API, I think you can't while you are creating the case, but if you got the UID of the task where the Input Document is a step and the case UID you can upload a file .

see this link

http://wiki.processmaker.com/REST_API_C ... t-document

I hope this help you

Regards
#785268
Hi Marceloramirez,

I go through that Rest APi as you replied. But nothing is clear ,how to use that API because in that we have to post below parameter
inp_doc_uid,tas_uid,app_doc_comment,form (The path to the file to upload to the ProcessMaker server.)
How to upload file on ProcessMaker Server.
Please refer if you have any example.

Thanks
#785365
Hi All,

Can Anyone help me in that?
I'm using Rest API :-Upload Input Document: POST /cases/{app_uid}/input-document for upload documents.
I uploaded document on my Rest API application and calling above rest API with below parameter
{
"inp_doc_uid":"test10111124322509756bc1b5test10",
"tas_uid": "24322509756bc1b5012c202012716621",
"app_doc_comment": "test",
"form": "documents/abvop.jpg"
}

Response
{
"error": {
"code": 400,
"message": "Bad Request: This filename does not exist!"
}
}

I'm waiting of reply :)
#785397
Hi Marceloramirez,

I'm using asp.net for saving file and passing path as parameter.
like:-
{
"inp_doc_uid":"test10111124322509756bc1b5test10",
"tas_uid": "24322509756bc1b5012c202012716621",
"app_doc_comment": "test",
"form": "file uploaded path"
}

I'm .net and jquery programmer,so it's difficult to use php.Let me know if have any example

Thanks Marceloramirez :)

ICO software script is a pre-made program for crea[…]

A crypto exchange script is a pre-designed softwar[…]

So I recently bought an addmotor Ebike which of co[…]

A crypto casino clone script is a ready-made softw[…]