I want to use Stata to import files into my files repository in Redcap but i don’t know how to do it.
To use API Redcap i worked with https://github.com/lsgs/REDCap-API-and-Stata but it doesn’t talk about files repository.
I tried this code :
<code>shell `curlpath' ///
--form token=`apitoken' ///
--form content=fileRepository ///
--form action=import ///
--form folder_id=4 ///
--form file=myfile.csv ///
--form returnFormat=csv ///
`apiurl'
</code>
<code>shell `curlpath' ///
--form token=`apitoken' ///
--form content=fileRepository ///
--form action=import ///
--form folder_id=4 ///
--form file=myfile.csv ///
--form returnFormat=csv ///
`apiurl'
</code>
shell `curlpath' ///
--form token=`apitoken' ///
--form content=fileRepository ///
--form action=import ///
--form folder_id=4 ///
--form file=myfile.csv ///
--form returnFormat=csv ///
`apiurl'
but i have the error : No valid file was uploaded.
Do you know what can i do here?
Thanks !