Created
July 26, 2013 09:49
-
-
Save evansj/6087673 to your computer and use it in GitHub Desktop.
Use curl to upload files to Alfresco
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this is a quick and dirty way to upload files to an Alfresco instance, useful | |
# for grabbing logfiles from a server that you can't easily access with scp | |
curl -k -X POST --user username:password \ | |
-F filedata=@catalina.out.bz2 \ | |
-F siteid=your-site-id \ | |
-F containerid=documentLibrary \ | |
-F uploaddirectory=/logs \ | |
-F filename=catalina.out.bz2 \ | |
-F contenttype="application/x-bzip2" \ | |
https://servername.example.com/alfresco/service/api/upload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
" -F contenttype="application/x-bzip2", are you sure this is right? This contenttype seems to refer to the Alfresco type not to the mimetype of the document.