to upload a CSV from the frontend as the first part and then reading that CSV to input the CSV rows into my DB. But I am hitting this error since the beginning:
Have checked my Serverconnect steps for more than 45 mins, everything seems to be lined up properly but unable to figure out the issue. Here’s what the actions look like.
Have you tried to fill in the Template field (I know that it is not necessary to fill in, this is for the sake of the test)? If the field is filled in, it returns the same error?
This error often shows if the file upload fails - the most common reason for this is permissions. Have you checked that the folder exists on the web server and the web service account (often www-data on Linux ) has write permission for the folder?
“message”:“export.csv: path is required.”,“stack”:“Error: export.csv: path is required.\n at App.parseRequired (/opt/node_app/lib/core/app.js:293:19)\n at App.csv (/opt/node_app/lib/modules/import.js:111:25)\n at App._exec (/opt/node_app/lib/core/app.js:255:57)\n at App._exec (/opt/node_app/lib/core/app.js:234:28)\n at async App.exec (/opt/node_app/lib/core/app.js:205:9)\n at async App.define (/opt/node_app/lib/core/app.js:188:9)”}
I haven’t used docker yet but you could check that the folder exists in the file viewer. What you need is the folder on the remote target. If it’s not there, create it locally and click publish to sync all files/folders
This error is just what it tells you, the path options is not set. I see in your post that you set it with upload1/path, this somehow is not set or null. This is possible when no file was uploaded or something went wrong during the upload. In the upload step set the option to throw errors, then you will see if there goes anything wrong there.
What kind of upload do you have on your page, is it possible that it is a multi upload? Please test the upload by enabling its output option and disable all steps after the upload, then check the response from the server after you upload a file.
Hi Patrick, it’s a single file upload. Disabled the other steps apart from the file upload. Response status is 200 but upload1 seems empty. What could be the issue?
At least we now know that it is indeed the upload step that isn’t working. Please check the Headers tab and look what is posted to the server, is the file input named input1 and is the form posted correctly.
It wasn’t in Docker, but I got this message when the folder I was trying to upload to either didn’t exist or the permission wasn’t there for the web account. Might not help but hoped it would…