I've set up dropbox on my headless 12.04 server machine, it's synced properly and I have it setup so that I can email photos using sendtodropbox.com app. These all sync in to the dropbox folder locally on my host
I'd like to do two things:
I'd like to be able to email my dropbox photos, then have those files sync down to my server.
Then copy those files over to the blog's photo repository folder.
The problems I'm running into are:
- I can make a symlink to a folder outside the Dropbox folder (to my blog's photo repository folder), the only problem is, photo's are emailed in with one file name, photo.jpg (thanks Apple!).
This means, I need a bash script to rename files named photo.jpg to something unique when they are created.
This will allow me upload more than one photo, and be able to differentiate which pictures are which!
I can create a symlink easy enough, I'm just struggling to find a solution that can change the file's names in real time as they are synced through dropbox down to h