Im trying to create an upload action in Capacitor Framework 7 project and I persistently get this error message:
{status: “500”, message: “image.load: path is required.”,…}
message: “image.load: path is required.”
stack: “Error: image.load: path is required.\n at App.parseRequired (/opt/node_app/lib/core/app.js:523:19)\n at App.load (/opt/node_app/lib/modules/image.js:134:38)\n at App._exec (/opt/node_app/lib/core/app.js:485:57)\n at App._exec (/opt/node_app/lib/core/app.js:456:28)\n at async App.exec (/opt/node_app/lib/core/app.js:425:9)\n at async App.define (/opt/node_app/lib/core/app.js:415:9)”
status: “500”
My upload path and everything is properly setup and my api is on a https site.
Can you help me fix this @Teodor
Then probably there is an issue with the upload not getting executed properly or file not being actually uploaded.
Try disabling all other steps and leave the upload + a set value step outputting the path to see if it returns anything.
disabled all steps, the upload action runs. But it does not output to the server connect action.
It does output to the browser but it is not available within the Server Connect Action.
I’m assuming this is becoming more of a bug. The fact is the upload/path is not available within SC. When you try reference it with server connect steps, it does not output…
I'm not sure I'm following.
Can you post a screenshot of what are your server action steps, how are they configured and what's output in the browser as a result?
Hi @Teodor I’m going to take a break & revisit it in the AM. If there is no way out after recreating the steps, I will post the full issue. I guess I need to step away from this for a bit for some clarity.
Thanks for your help. I quite appreciate it.