You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
Paweł S.2
9 years agoNew member | Level 1
Download new file from shared folder
Hello!
We got chooser in application and we can choose a video to upload to application. Idea is we want that user can choose a folder and if new file appears in specific folder, the new file will upload to our application.
Is it possible to detect if new file appears and then we should got the download link to this file. Detect is just refresh folder info... But then we got no download link to new file.
- Greg-DBDropbox Staff
The Dropbox Chooser doesn't currently support folder selection, so it's not possible to get a folder link to monitor for changes, but I'll be sure to pass this along as a feature request.
- Paweł S.2New member | Level 1
Thank you for the reply.
Is is possible to do it with API or using something else?
Example: User paste link to folder (shared or else) and application has permission to download files in this folder? Single file. - Greg-DBDropbox Staff
Yes, if you develop a Dropbox API integration (i.e., using the Dropbox API, where the user authorizes the app to connect to their account, as opposed to using the Chooser), your app would get persistent access to the files and folders in the account. The app could in that case monitor for changes and download files as needed.
For example to download files:
https://www.dropbox.com/developers/documentation/http/documentation#files-download
You could also get information via shared links, though that wouldn't be strictly necessary in this case, via:
https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_metadata
https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_file - Alexander P.5New member | Level 1
Gregory, this is good piece of info.
Currently I've managed to get public folder list via V1, then get the contents by v2, last line above.
Thanks!
Still looking for thumbnails of all the stuff in a folder...
- Greg-DBDropbox Staff
Alexander, you can use the /files/get_thumbnail endpoint to get the thumbnail for a file in the authorized user's account:
https://www.dropbox.com/developers/documentation/http/documentation#files-get_thumbnail
The path parameter would be the path to the image you want a thumbnail for in the user's account. E.g., to get a thumbnail for an image named image.jpg inside a folder named Pictures, it would be "/Pictures/image.jpg".
Note that this only works if you're connected to the account that has that file though. That is, won't work if you have user A's link, but are only authorized for user B's account.
- Alexander P.5New member | Level 1
Gregory,
thanks, but that much is clearly documented.
Yet I need thumbnails inside a public link. Ideally, in bulk.It's a bit anecdotal--public link is here, original web page has it all... human in browser can see it... yet same is not (?) available through otherwise cool API.
I'm so desperate I'm considering hacking original web interface and getting urls to thumbnails from there.
But am still hoping=bugging you ;-) Maybe there is a way?
I've summed up my current findings here https://github.com/seene-club/seene-shelter/blob/master/dropbox.md
- Greg-DBDropbox Staff
Thanks for following up. If you only have access to the link, and not the account that owns the files, I'm afraid there isn't a good way to programmatically get the thumbnails.
In either case, there isn't a way to do so in bulk.
We'll consider these feature requests though.
Also I should note that scraping the Dropbox site is against the terms.
- maca134New member | Level 2
Any update on an api call to list folders/files in a shared public link?
- Stephen C.14Dropbox Staff
Unfortunately, at the moment, we don't have any updates to share here – apologies!
- Alexander P.5New member | Level 1
Thanks, Gregory.
I know ;) And anyway any such hack would be also fragile because Dropbox is evolving and undocumented interfaces change.
Not going to do that.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,918 PostsLatest Activity: 2 days ago
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!