0

用 Gridfs 这个类在上传文件时可以手动指点 id 和 content type,但 Gridfs 类需要 DB 这个参数,但DB 已经在3.2 弃用了,说是被MongoDataBase替代了。但用MongoDataBase 只能实例化出Gridfsbucket ,但这个类在上传文件时无法指定id 和 content type,请问是这样吗,还是我没有找到对应的方法呢,
请大神们帮忙解答