2
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 ~/Dropbox/Attachments/
.
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
You can email stuff to your DropBox account using SendToDropBox.
– martineau – 2012-08-23T00:54:48.853Right, I mentioned that in the post :] – knishka – 2012-08-23T01:42:16.390
With SendToDopBox the attachments would not all have the same file name. – martineau – 2012-08-23T08:23:46.510
You're not able to change the file name with sendtodropbox, you can only attach one image at a time, and the only thing that can be modified is the folder they're copied in to. – knishka – 2012-08-23T10:02:09.533