Added bucket method to upload files from a file object.