Node.js 如何使用node express将图像上载到aws s3并在mongoDB中存储url
如何使用node express和mongoose将多个图像上载到aws s3并在mongoDB中存储公共url 模式Node.js 如何使用node express将图像上载到aws s3并在mongoDB中存储url,node.js,amazon-web-services,express,amazon-s3,mongoose,Node.js,Amazon Web Services,Express,Amazon S3,Mongoose,如何使用node express和mongoose将多个图像上载到aws s3并在mongoDB中存储公共url 模式 const shopSchema = new Schema({ shopName: { type: String, required: true }, ownerName:{ type: String, required:true }, phoneNumber:{ type:String, required:t
const shopSchema = new Schema({
shopName: {
type: String,
required: true
},
ownerName:{
type: String,
required:true
},
phoneNumber:{
type:String,
required:true
},
image: {
type: String,
required: true
},
passbook: {
type: String,
required: true
},
certificate: {
type: String,
required: true
},
location: {
type: { type: String },
coordinates: [],
},
password:{
type:String,
required:true
},
isVerified:{
type:Boolean,
default:false,
required:true
}
,
foodId: [{
type: Schema.Types.ObjectId,
ref: 'Food',
}]
});
我已经使用了multer并存储在本地设备中,但我在部署中遇到了问题
需要将URL存储在图像、证书、存折字段中您可以找到大量用于将图像文件上载到S3的教程。请发送任何链接。我已经研究过了,但我的表单包含3个存档文件,我需要将其上载到aws s3并检索url1。2.你解决过这个问题吗?你有没有关于你的问题的相关链接?你可以找到很多关于图像文件上传到S3的教程。你能发送任何链接吗。我已经研究过了,但我的表单包含3个存档文件,我需要将其上载到aws s3并检索url1。2.你解决过这个问题吗?你的问题有相关链接吗?