Fetch file attachments from a SurveyCTO server
Source:R/scto_get_attachments.R
scto_get_attachments.Rd
This function can download encrypted and unencrypted files attached to forms.
Arguments
- auth
scto_auth()
object.- urls
Character vector of API URLs for file attachments. Will typically be derived from a column of a
data.table
returned byscto_read()
. Can contain missing values.- output_dir
String indicating path to directory in which to save files.
- private_key
String indicating path to private key file. Only needs to be non-
NULL
to decrypt encrypted file attachments.- overwrite
Logical indicating whether to overwrite existing files.