vito/system/commands/common/storage/upload-to-dropbox.sh
Saeed Vaziry 5c72f12490 init
2023-07-02 12:47:50 +02:00

7 lines
304 B
Bash

curl --location --request POST 'https://content.dropboxapi.com/2/files/upload' \
--header 'Accept: application/json' \
--header 'Dropbox-API-Arg: {"path":"__dest__"}' \
--header 'Content-Type: text/plain; charset=dropbox-cors-hack' \
--header 'Authorization: Bearer __token__' \
--data-binary '@__src__'