July 26, 20196 yr Newbies Filemaker friends: I have been struggling for weeks to get my FM solution to post a CSV to an external service via a POST request to their API. I have successfully created scripts with the "Insert from URL" script step for simple POST and GET requests, but nothing that transfers a file. Here is the doc: https://apidocs.straticsnetworks.com/v1.1/reference#upload-new-phone-list Here is the URL in the script step: httpspost://api.ivr-platform.com/api/phonelistsaccount=xxxxxxxx&file="$file And my headers look like this: " -H \"Accept: application/json\" "& " -H \"Authorization: Jwt "&$token&"\""& "--dump-header $$dump" The .csv file in the variable $file is stored in a container. All I can ever get the server to return is an error message that says: {"Error":"'file' is a required parameter"} Does the $file variable need to go in the header? If so, what tag does it need? Thanks in advance.
Create an account or sign in to comment