Merge pull request #13919 from angelbanderasudg/master

This commit is contained in:
Marc 2023-02-02 17:04:27 +01:00 committed by GitHub
commit 096d00aa11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,6 +24,10 @@ module.exports = {
config.filename = `${file.hash}${file.ext}`; config.filename = `${file.hash}${file.ext}`;
} }
if (file.path) {
config.folder = file.path;
}
const uploadStream = cloudinary.uploader.upload_stream( const uploadStream = cloudinary.uploader.upload_stream(
{ ...config, ...customConfig }, { ...config, ...customConfig },
(err, image) => { (err, image) => {