Forum Discussion

hb_'s avatar
hb_
Helpful | Level 5
6 years ago

Upload A File Via Curl In C++

How to create a program that takes a file from my computer(image, audio, video or any other file type) and upload it to my dropbox account via curl in c++.

I found this:
https://riptutorial.com/dropbox-api/example/1355/uploading-a-file-via-curl-in-cplusplus

But this code does is crette a new file in my dropbox account in a supplied path.

I want to take a file from my computer and upload it.

Should I modidy the code given in that link ar do any other thing to accomplish my goal?

  • Здравко's avatar
    Здравко
    Legendary | Level 20

    hb_, the Dropbox application do exactly what you are looking for. What exactly isn't enough?

    • hb_'s avatar
      hb_
      Helpful | Level 5

      I mean, a C++ program:grin:

      Just like I have successufully used curl in a c++ program to download files tomy computer, I want, this time, to take files from my pc and upload it to my dropbox