Dropbox Application; Is it possible to check when a folder or a file is created or modified? - dropbox

Is it possible to check when a folder or a file is created or modified in my Dropbox Application's folder?

All right, I found the answer.. Developers who want to get information of changes user did in application can use dropbox Delta API or REST API Delta URL..
dropbox.com/developers/reference/api#delta
"https://api.dropbox.com/1/delta" URL in REST API returns last changes as a Json Object.

Related

Dropbox API - Add Folder Overviews when creating folder

I cannot for the life of me figure out how to add a custom folder overview using Dropbox's API is this possible or not?
No, the Dropbox API doesn't currently expose the ability to set folder overviews programmatically, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.

How to save a file from Dropbox link in my Dropbox

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?
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

Can I upload files from a custom website form to Dropbox?

I have clients uploading files directly to my Dropbox folder. I was curious if I can build a website form that uploads the file to my Dropbox folder and also saves the forms data to my server with a reference to the file that was uploaded to Dropbox? They are legal documents and I don't want to worry about security if Dropbox handles that.
It looks like it should definitely be possible.
You would have to use the dropbox api:
https://www.dropbox.com/developers
https://github.com/dropbox/dropbox-js
There are some javascript examples that would likely be what you would need to go directly to dropbox without going to your server first.

Using dropbox Chooser drop-in to retrieve a non-expiring link to files

I would like to use the Chooser drop-in to select a file from dropbox and then synchronize my app with that file occasionally in the background.
https://www.dropbox.com/developers/dropins/chooser/js
A scenario would be:
List item
User selects file.
File uploads to my app.
User returns to my app a few days later after modifying the file in dropbox.
My app should synchronize and pull down that particular file (without again displaying the Chooser drop-in).
The problem is that the Chooser provides an expiring link to the file:
"direct" is an expiring link to download the contents of the file
I can use the Core API exclusively which would work, however I would have to build my own UI to browse the user's dropbox directory. Ideally, I'd prefer to not introduce the world to another file browser; Dropbox has a file browser - and people are familiar with it. Is this possible?
Thanks,
You can just get a preview link and convert it. See https://www.dropbox.com/developers/blog/53/programmatically-download-content-from-share-links.

Retrieve all image files using Dropbox Core API

I am working on Dropbox Core API with Google App Engine (python). There seems to be some problems with Dropbox-python-sdk on GAE. Therefore, I have choose to use the Core APIs directly.
My app is trying to retrieve all image files from a user's dropbox (with file type permission). But I couldn't find a way to get all files without specifying the root/path (all the APIs stated here requires a specific file path)
Any idea?
EDIT Dropbox actually recommends not automatically recursing via /metadata calls. (See https://www.dropbox.com/developers/core/bestpractices.)
There's no method to get a recursive list of files, so you would need to use /search to find files or /delta with no cursor to get the full list of files.
Could the Chooser be an option here (if you're just trying to let the user pick individual files)?