-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project dead? #22
Comments
Hello, I've just updated this project and submitted a pull request about 10 days ago. There's no answer by now. Meanwhile I've added some new features I needed for a project. I'm considering release a new package today or tomorrow. You're welcome to contribute! |
The fork is available as multer-cloud-storage and is updated up to Google Cloud Storage's API v5.0.1, released some days ago. The only drawback is that it supports only node>=10. |
Hello @alexandre-steinberg, your fork works great man. Thank you. But I've some issues when uploading multiple files using Here's the result when I tried to log the
Any idea how I can fix that? |
I'll check it. In meantime, could you send some details as how are calling multer and configuring the storage engine? Are you passing any custom function for nameing or just working with the defaults? |
Thank you for the response man. Yes, I did have a custom function for naming the files. For now, I've got a workaround by using Here's my config: import multerGcs from 'multer-cloud-storage'
export const fileHandler = multer({
storage: new multerGcs({
keyFilename: path.join(__dirname, '../../../keyfile.json'),
projectId: 'project-id',
bucket: 'bucketname',
acl: 'publicRead',
destination: 'regulasi/',
filename: (req, file, cb) => cb(null, `${Date.now()}-${file.originalname}`)
})
})
export const handleUpload = (req, res) => {
console.log(req.files)
res.json({files: req.files})
} And here's how I called the function: router.post('/file', fileHandler.array('regulasi'), handleUpload) |
Facing same issue, any update on this? |
Fixed on v2.3.0. All packages were also updated, including Google API to v5.1.1. Have fun! |
Thanks @alexandre-steinberg ! |
@alexandre-steinberg Thank you so much sir! |
Is this project still being worked on? If not, I'd like to fork it and create a new package picking where this left off.
The text was updated successfully, but these errors were encountered: