'how to authincate dropbox login into a website then make the user choose files to import

how to authincate dropbox login into a website then make the user choose files to import. I have Dropbox Javascript SDK. I just wanna know what kind of options available to do that.

I'm thinking of

1- authenticate the account dropbox of the user and when he selects the folder to import someway I download the folder into the website's host 2- The user share the link of the folder and then I download it with Curl into the host 3- Or can I share a folder and preview the content of this folder into the website

Overall the biggest concern is to save duplicates Uploads. What are options to do such a thing using JS SDK or PHP.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source