Discuss Dropbox Developer & API
Has anyone figured out a way to automatically move photos and video files from the "camera uploads" folder to sub-folders that I created by year (ex. 2017, 2016, 2015, etc.)?
I wish there was some way to setup a Unix like service (ahem cron) to create a job that would interrogate a directory and move photos and videos based on its creation time.
I can do this in my sleep on a unix-like platform ... if anyone knows an automated way to do this, holla!
Dropbox does offer an API you can use to operate on files in your Dropbox account, such as to move them between folders as desired. You can find everything you need to get started with the Dropbox API, including documentation, tutorials, and SDKs here:
https://www.dropbox.com/developers
For moving files or folders in particular, you would use /2/files/move_v2:
https://www.dropbox.com/developers/documentation/http/documentation#files-move
That's a link to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible:
https://www.dropbox.com/developers/documentation
Those have corresponding native methods for the HTTPS endpoints.
Hi Greg,
very helpful information and thank you. I'm not a developer (more of a script kiddie) but will give it a shot.
Regards,
Mike M.
Hi there!
If you need more help you can view your support options (expected response time for a 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!