Newbies Tim Grimes Posted July 26, 2019 Newbies Posted July 26, 2019 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.
OlgerDiekstra Posted July 27, 2019 Posted July 27, 2019 Have you tried using the --upload-file option in cURL?
Recommended Posts
This topic is 2014 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now