CloudinaryDotNet icon indicating copy to clipboard operation
CloudinaryDotNet copied to clipboard

Image is not deleted even when response from CloudinaryDotNet is successful

Open portal7 opened this issue 1 year ago • 1 comments

Bug report for Cloudinary .NET SDK

Before proceeding, please update to latest version and test if the issue persists

Describe the bug in a sentence or two.

Issue Type (Can be multiple)

  • [ ] Build - Cannot install or import the SDK
  • [ ] Performance - Performance issues
  • [X ] Behaviour - Functions are not working as expected (such as generate URL)
  • [ ] Documentation - Inconsistency between the docs and behaviour
  • [ ] Other (Specify)

Steps to reproduce

Executing

 var deleteParams = new DelResParams()
   {
       PublicIds = new List<string> { "wsv4vxeglcbupvmonsno" },   // Example of publicId
       Type = "upload",
       ResourceType = ResourceType.Image,
       Invalidate = true,
       Tag = "REMOVED"
   };
   
  var result = _cloudinaryClient.DeleteResources(deleteParams);
   // returns OK and Errors = null 

Error screenshots or Stack Trace (if applicable)

OS and Version

  • [ ] Linux
  • [ ] Windows
  • [ ] macOS
  • [ X ] MultiPlatform

Versions and Libraries (fill in the version numbers)

  • Cloudinary .NET SDK version - 1.25.0
  • .NET Core - 8.0.0
  • .NET Framework - 0.0.0

Repository

If possible, please provide a link to a reproducible repository that showcases the problem

portal7 avatar Feb 27 '24 22:02 portal7

Hi @portal7,

Do you mind sharing your cloud_name? Is it wapicom? If it is the case, as documented here, the public_id contains the folder path so in your case, you should have set the public_Id to taller/wsv4vxeglcbupvmonsno.

Vdeub-cloudinary avatar Feb 28 '24 15:02 Vdeub-cloudinary