Add support for file uploads
Add the upload method to handle file uploads. Use MIME::Types to detect the file's MIMETYPE