diff --git a/src/index.ts b/src/index.ts index a4e5a18..c5bb8fc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -37,7 +37,8 @@ const handle = async (ctx: picgo)=>{ }); const options = { //'use_filename' : true, - 'public_id' : fPath + '/' + hashfName, + 'folder' : fPath, + 'public_id' : hashfName, 'unique_filename': false } await cloudinary.uploader.upload(img, options ,function(error, result) {