Sorry to revive this, but wanted to share my script for this.
Same call still works fine!
I made a little bash script to send the files with something like
./cloudsend.sh ./myfile.txt https://cloud.mydomain.net/s/fLDzToZF4MLvG28
Files and folders with spaces should be quoted or escaped of course.
Download with curl
To current folder
curl -O 'https://gist.githubusercontent.com/tavinus/93bdbc051728748787dc22a58dfe58d8/raw/cloudsend.sh' && chmod +x cloudsend.sh
To /usr/local/bin/cloudsend
Using sudo for sys install
sudo curl -o '/usr/local/bin/cloudsend' 'https://gist.githubusercontent.com/tavinus/93bdbc051728748787dc22a58dfe58d8/raw/cloudsend.sh' && sudo chmod +x /usr/local/bin/cloudsend
Help info
$ ./cloudsend.sh -h
CloudSender v0.0.7
Parameters:
-h | --help Print this help and exits
-V | --version Prints version and exits
-k | --insecure Uses curl with -k option (https insecure)
Use:
./cloudsend.sh <filepath> <folderLink>
Example:
./cloudsend.sh './myfile.txt' 'https://cloud.mydomain.net/s/fLDzToZF4MLvG28'