0

If my client choose a file from Dropbox using Dropbox Chooser and we have a link like https://dl.dropboxusercontent.com/1/view/og7hvjnt7p57jjw/Penguins.jpg. Now if client removes file from his Dropbox account we have nothing so my question is how can I add this file to my Dropbox using PHP instead of Dropbox Saver?

Greg
  • 16,359
  • 2
  • 34
  • 44
Arif Sami
  • 307
  • 1
  • 2
  • 14
  • [Cross-linking for reference: https://www.dropboxforum.com/t5/API-support/How-to-save-a-file-in-my-dropbox-from-dropbox-shared-link/m-p/192814 ] – Greg Nov 02 '16 at 18:35

1 Answers1

0

You can use a normal HTTP GET request to download the file from the link while the link is still valid. (Note, the "direct" link type you have in your question expires after four hours.)

Then, you can use the Dropbox API to upload the file to your own Dropbox account:

https://www.dropbox.com/developers/documentation/http/documentation#files-upload

Greg
  • 16,359
  • 2
  • 34
  • 44