curl.exe -F "dest=/prearchive/projects/T01" -F "FILE=@C:\yourfilepath.zip" -u USERNAME:PASSWORD http://yourxnaturl
curl -u $uname:$pass -X PUT "$host/data/experiments/$id/assessors/FS_v5-3-0_$id/out/resources/DATA/files?extract=true&overwrite=true&inbody=true" -T test.zip
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
To post to this group, send email to xnat_di...@googlegroups.com.
Visit this group at http://groups.google.com/group/xnat_discussion.
For more options, visit https://groups.google.com/d/optout.
Try adding a file name to the url with a .zip extension. I’m not sure what the http message curl builds there looks like. But upload.unsupported tends to show up when XNAT can’t figure out the name of a file. So, just give it one. It will be ignored after the file is extracted.
curl -u $uname:$pass -X PUT "$host/data/experiments/$id/assessors/FS_v5-3-0_$id/out/resources/DATA/files/test.zip?extract=true&overwrite=true&inbody=true" -T test.zip
Tim
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.5577 / Virus Database: 4235/8668 - Release Date: 12/02/14