mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 00:09:18 +00:00
Merge pull request #13919 from angelbanderasudg/master
This commit is contained in:
commit
096d00aa11
@ -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) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user