Uploading file to SC

We have a need to upload an to a SC API using other software. We’re testing this by using curl but it doesn’t seem to work. The file uploads, but is not stored in the folder - we reflect the filename back in the response, and it is correct, so the upload does appear to be ok.

We have a very similar app connect form for uploading the file, and this works ok, but we need to be able to provide the ability to upload outside of a browser. I note that when uploaded through the App Connect form the File Upload task returns a value, where when it’s done through curl it returns null so the upload is failing at this stage to some degree.

Below is the SC action we have defined, and below that is the response that shows the file is uploaded (ie the filename is known) however the file is not stored in the folder.

Any hints from anyone who has done this, or knows more about how SC needs to receive files would be appreciated.

curl -v -X POST -F 'file=@/testfile.bin' https://example.org/dmxConnect/api/file/update.php

{"upload":null,"hello":"testfile.bin"}
Community Page
Last updated: