Middleware for DropBox