Skip to content
Chris Petersen edited this page Oct 16, 2014 · 5 revisions

redcap-import-file uploads a file to a REDCap project

Parameter Description
host Server hostname
token Authentication token (project and user specific!)
record Primary id of record
field Field variable name for which the file is uploaded
filename Filename of the file being uploaded. Include full path if needed.
xargs Optional: Additional parameters, such as 'event or 'form can be specified here

Example

Example 1: Importing a file to a project.

> ;;Testing Import File function
> (define redcap:token "54CC....CC10")
> (define redcap:hostname "redcap.INSTITUTIONNAME.ca")
> (redcap-import-file redcap:hostname redcap:token "1" "file2" "data.csv")
#f

Clone this wiki locally