NetTalk Central

Author Topic: Posting to Dropbox  (Read 51 times)


  • Hero Member
  • *****
  • Posts: 1723
    • MSN Messenger -
    • View Profile
    • ARMi software solutions
    • Email
Posting to Dropbox
« on: July 12, 2021, 12:34:35 PM »
To upload a file to Dropbox using CURL:

curl -X POST
--header "Authorization: Bearer TuToken"
--header "Dropbox-API-Arg: {\"path\": \"/Test.txt\"}"
--header "Content-Type: application/octet-stream"
--data-binary @Test.txt

No problem with the header but...
How to set the --data-binary @Test.txt in NT?

Im trying to use this instaed of NetDrive because I did not found a way to use it with a fixed Token
Besides... using CURL you can generate the file hyperlink, using:
curl -X POST --header "Authorization: Bearer TuToken" --header "Content-Type: application/json"  --data "{\"path\": \"/Test.pdf\",\"settings\": {\"requested_visibility\": \"public\"}}" > SharedHyperlink.Json


« Last Edit: July 13, 2021, 04:15:15 AM by michelis »


  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10537
    • View Profile
Re: Posting to Dropbox
« Reply #1 on: July 13, 2021, 07:52:24 PM »
--data-binary @Test.txt

This is just the "postdata" part of the net web client. So use,str)

where str is a stringTheory object containing the binary data you want to send (presumably the contents of a file, you loaded into str with str.loadfile)