We have a smart action to upload a document which is behind a request approval workflow when we go to trigger the action we get an error of “You don’t have the right to trigger this action anymore.” And if I check my console I’m getting an error of the Payload Too Large.
But when I remove it from the request approval workflow and make it so the smart action just triggers the request goes through, which makes me think it’s not related to the file size but some error on the request-approval side.
As on Forest Admin and on our server we have the file size limit to be 20mb and the file that we’re currently uploading is 4mb
Expected behavior
For the smart action to execute successfully and go to the request approval workflow
As we have no storage of our own on the agents side (and obviously can’t create tables on your database), approval workflow works the following way:
When the approval request is submitted, the content of the smart action form is saved in our servers
When an authorized user accepts the approval request, the frontend downloads the content of the form from our servers, and replays it to your agent (the approver is the one submitting the smart action).
The issue that you are having is that the initial form submission is larger than the max body size in our server.
I asked the performance team, and wrote a PR to increase that limit to 20mb on our side, but I’m still waiting for my coworkers to review and merge it.