Closed m0x61h0x64i closed 1 year ago
Please share information about the file that is calling this module
Please share information about the file that is calling this module
here is the route & controller :
const upload = require('../middleware/upload.js')
const app = require('express')()
app.get('/', upload, (req, res) => {
console.log(req.file)
})
Have you used the upload module in this way?
const upload = require('../middleware/upload.js')
const app = require('express')()
app.get('/', (req, res) => {
upload(req, res , (req, res) => {
console.log(req.file)
})
})
Have you used the upload module in this way?
const upload = require('../middleware/upload.js') const app = require('express')() app.get('/', (req, res) => { upload(req, res , (req, res) => { console.log(req.file) }) })
yes, that didnt help me to solve the issue.
I'm afraid that we cannot help you with Minio compatibility since that isn't something we support officially...
Per your error:
var upload = this.s3.upload(params) TypeError: this.s3.upload is not a function
It looks like the thing you passed in as s3
doesn't have an upload
function?
as you know minio is also a s3 compatible so i used minio configuration like the following to create a s3 config :
and then i used this configuration in the multer-s3 to create a storage :
but it dosent work and throws an error :