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?

1

1 Answer 1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.