A flexible file upload library for use with MongoDB and S3