3 ms·
I have a script that receives email from dropbox re shared folders and pulls the email address and folder name. This info gets put in a table. A cron job looks
by brlewis 17y ago
I have a script that receives email from dropbox re shared folders and pulls the email address and folder name. This info gets put in a table. A cron job looks in this table and notices when the folder appears. It sends an email to the user who has to do a final confirmation step to protect against fake emails. Once that's done the cron job checks every minute for new files, processes them as it would files uploaded through the web, then deletes them.
Hackish parts: 1. The email format could change. 2. If the folder name isn't unique the email contains the non-unique name. Eg "ourdoings" in email, then when I accept, the folder is named "ourdoings (28)". I have to change the folder by hand. 3. They have to use the same email for dropbox and ourdoings signup. 4. Often people make subfolders of their "Photos" folder which doesn't fit the workflow.
There are changes I could make to help address these issues. It just hasn't been a high priority. The system works great once setup is done. I'm really glad I implemented it rather than just wait for an api. There's no more convenient way to upload photos.
- revorad 17y agoThanks Bruce.