Owncloud upload file to specific folder - curl

我们两清 提交于 2020-01-04 06:54:43

问题


I want upload files through curl on my owncloud server in a specific folder. For example: http://www.myowncloudserver.com/remote.php/webdav/{MY_FOLDER}. At this time I can't upload a file to a folder on my owncloud server. Any ideas?


回答1:


$ curl --user username:password -X PUT "https://www.myowncloudserver.com/remote.php/webdav/MY_FOLDER" --data-binary @"file.txt"


来源:https://stackoverflow.com/questions/36955796/owncloud-upload-file-to-specific-folder-curl

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!