R/bulk_uploads.R
upload_files.Rd
This file uploader is largely borrowed from the R package NPSdatastore. It will take a file of any size and upload it to a given reference. This involves chunking the file into smaller pieces in order to upload larger files.
upload_files(
filename,
path,
reference_id,
is_508 = FALSE,
chunk_size_mb = 1,
retry = 1,
dev = TRUE
)
String. Name of the file to be uploaded.
String. Location of the file to be uploaded.
String. The reference number for the DataStore reference the file will be uploaded to.
Logical. Is the file in question 508 compliant? TRUE = Yes, FALSE = No. Defaults to FALSE.
Integer. Size of file chunks to be uploaded, in MB
Integer. Number of times to retry uploading file chunks if a given chunk fails.
Logical. Defaults to TRUE. FALSE means files will be uploaded to the production server. TRUE means files will be uploaded to the development server. Use Dev = TRUE when testing the function.
List. Of information about the uploaded file.
if (FALSE) upload_files(filename = "example_file.wav",
path = getwd(),
reference_id = 1234567,
is508 = FALSE,
dev = TRUE) # \dontrun{}