Keeping compatibility with gridFS