Uploading files to an ownCloud server programmatically

前端 未结 6 550
鱼传尺愫
鱼传尺愫 2020-12-09 21:49

I am trying to set a web application where many clients can connect through a Node.js http server and then upload/download files that will then be shown in different display

6条回答
  •  离开以前
    2020-12-09 22:23

    As an addition to the existing answers, I use the following function as alias:

    cloud() {
      curl -X PUT -u ":" "https:///remote.php/webdav/${2:-$1}" --data-binary @"./$1"
    }
    

    Just replace , and and put this in your .bash_aliases and you can upload your files with:

    cloud filename
    cloud path filename
    

提交回复
热议问题