I'm using the Insert From URL script step with FileMaker Pro Advanced v16 to download a file from an API using the cURL options - everything is working well but I would like to set the name of the download file if possible as part of the download process.
At the moment the downloaded filename is just "documents" which I can see when I view the container field on a layout or use GetContainerAttribute ( Contacts::DownloadedPDF ; "filename" ) function. I can't see any option to specify a filename when using the Insert From URL script step and the cURL options - does anyone know a way to change the downloaded file name on the fly when using Insert From URL script step and the cURL options?
thanks,
Steve
You can use the --output cURL option, e.g. in your Insert From URL cURL options calculation you could include:
... which would give the downloaded file the name of 'myFile.pdf'.
Or, if you would rather use a variable whose value is set to the name of the file you want, it could be: