我有一个发布路线,它保存了所有数据,然后有PDF文件,但是现在我想将其保存到fs,但是会出现错误
Match Team1 Team2 Winner
0 Australia England Australia
1 England Australia Australia
2 India Australia Australia
3 England India England
这是模型 report.js
The "path" argument must be one of type string, Buffer, or URL. Received type object
在 api.js
name:String,
age:Number,
customerDetails:String,
userReport:{
user:String,
reportDate:String,
pdf:{
data:Buffer,
contentType:Schema.Types.Mixed
}
}