Fetch file attachments from a SurveyCTO server
Source:R/scto_get_attachments.R
scto_get_attachments.RdThis 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.tablereturned 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-
NULLto decrypt encrypted file attachments.- overwrite
Logical indicating whether to overwrite existing files.