I have a request to create a process, when creating a process I want to attach a file, as soon as I add files I immediately get an error {"status":0,"errorArray":["Error updating element #0 for account."]}
data = [
{
"workflowid": 1,
"statusid": 1,
"name": "text",
"content": "text",
"files": [
"link_img",
"link_img"
],
"image": "link",
"client": {
"name": "Text",
"namelast": "Last Name",
"namemiddle": "Middle name",
"phones": ["phone"],
"findbyArray": ["phone"],
"returnwithoutupdate": True,
"showerrorafterfind": False
},
"clientaddress": "text",
"delivery": "novaposhta",
"payment": "cash",
"currency": "UAN",
"products": [
{
"productinfo": {
"name": "text"
},
"count": "1",
"price": "325500"
}
]
}
]
I have a request to create a process, when creating a process I want to attach a file, as soon as I add files I immediately get an error {"status":0,"errorArray":["Error updating element #0 for account."]} data = [ { "workflowid": 1, "statusid": 1, "name": "text", "content": "text", "files": [ "link_img", "link_img" ], "image": "link", "client": { "name": "Text", "namelast": "Last Name", "namemiddle": "Middle name", "phones": ["phone"], "findbyArray": ["phone"], "returnwithoutupdate": True, "showerrorafterfind": False }, "clientaddress": "text", "delivery": "novaposhta", "payment": "cash", "currency": "UAN", "products": [ { "productinfo": { "name": "text" }, "count": "1", "price": "325500" } ] } ]
The request probably doesn't look like this. Give a real example, it will be clearer
Artem wrote: It would be desirable to implement the functionality that I attach a file that physically exists, and not a link to it
I can offer to accept base64 of file contents. It will take about 3 hours.
[quote]
Artem wrote:
"files": [
"link_img",
"link_img"
],
[/quote]
The request probably doesn't look like this. Give a real example, it will be clearer
[quote]
Artem wrote:
It would be desirable to implement the functionality that I attach a file that physically exists, and not a link to it
[/quote]
I can offer to accept base64 of file contents. It will take about 3 hours.
The query probably doesn't look like this. Give a real example, it will be clearer.
Artem wrote:
It is desirable to implement the functionality that I attach a file that physically exists, rather than a link to it.
I can suggest accepting base64 content of the file. It will take 3 hours.
[quote]
[file]24139[/file]
lace
[file]24139[/file]
OneBox production wrote:
[file]24139[/file]
[quote]
[file]24139[/file]
Artem wrote:
[file]24139[/file]
"files": [
[file]24139[/file]
"link_img",
[file]24139[/file]
"link_img"
[file]24139[/file]
],
[file]24139[/file]
[/quote]
[file]24139[/file]
The query probably doesn't look like this. Give a real example, it will be clearer.
[file]24139[/file]
[quote]
[file]24139[/file]
Artem wrote:
[file]24139[/file]
It is desirable to implement the functionality that I attach a file that physically exists, rather than a link to it.
[file]24139[/file]
[/quote]
[file]24139[/file]
I can suggest accepting base64 content of the file. It will take 3 hours.
[file]24139[/file]
[/quote]
[file]24139[/file]
[file]24139[/file]
At first glance, everything is ok. Attach this json from the screen as a file here and give a link to the user under which you make the request (I will take his token). I will try to make a request under this user and will be able to understand what exactly is wrong.
At first glance, everything is ok. Attach this json from the screen as a file here and give a link to the user under which you make the request (I will take his token). I will try to make a request under this user and will be able to understand what exactly is wrong.
Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter.
Log in and comment
Donate
You don't have enough funds in your account Top up