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.
When using the .NET SDK, it appears to not generate any signature. Additionally, my Cloudinary team requires metadata and the only way I can fulfill that requirement is with "addcustomparam" function.
Issue Type (Can be multiple)
Steps to reproduce
Account account = new Account("","","");
Cloudinary cloudinary = new Cloudinary(account);
cloudinary.Api.SignatureAlgorithm = SignatureAlgorithm.SHA256;
var uploadParams = new ImageUploadParams()
{
File = new FileDescription("IMG_2019.jpeg",File.OpenRead(file)),
UploadPreset = "",
Folder = ""
};
uploadParams.AddCustomParam("category","artwork");
var uploadResult = cloudinary.Upload(uploadParams);
Console.WriteLine(uploadResult.JsonObj);
Error screenshots or Stack Trace (if applicable)
When attempting to upload the file, the response is always: ""message": "Invalid Signature 6832973aae19f7f322bb88d48c7b34731c390f04cb9fafd5353ea5e5178639ea. String to sign - 'folder=×tamp=1768517629&upload_preset='.""
If I try to set the Metadata in the ImageUploadParams() as the documentation suggests, I get the error that you cannot convert a "X" to a bool. the key work Metadata does not hold the same meaning though the documentation indicates it does.
OS and Version
Versions and Libraries (fill in the version numbers)
- Cloudinary .NET SDK version - 1.27.9
- .NET Core - 9.0.304
- .NET Framework - n/a
Repository
I'm not sure on the repository. I can confirm that the same configuration works if I use the cloudinary-cli option.
If possible, please provide a link to a reproducible repository that showcases the problem
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.
When using the .NET SDK, it appears to not generate any signature. Additionally, my Cloudinary team requires metadata and the only way I can fulfill that requirement is with "addcustomparam" function.
Issue Type (Can be multiple)
Steps to reproduce
Account account = new Account("","","");
Cloudinary cloudinary = new Cloudinary(account);
cloudinary.Api.SignatureAlgorithm = SignatureAlgorithm.SHA256;
var uploadParams = new ImageUploadParams()
{
File = new FileDescription("IMG_2019.jpeg",File.OpenRead(file)),
UploadPreset = "",
Folder = ""
};
uploadParams.AddCustomParam("category","artwork");
var uploadResult = cloudinary.Upload(uploadParams);
Console.WriteLine(uploadResult.JsonObj);
Error screenshots or Stack Trace (if applicable)
When attempting to upload the file, the response is always: ""message": "Invalid Signature 6832973aae19f7f322bb88d48c7b34731c390f04cb9fafd5353ea5e5178639ea. String to sign - 'folder=×tamp=1768517629&upload_preset='.""
If I try to set the Metadata in the ImageUploadParams() as the documentation suggests, I get the error that you cannot convert a "X" to a bool. the key work Metadata does not hold the same meaning though the documentation indicates it does.
OS and Version
Versions and Libraries (fill in the version numbers)
Repository
I'm not sure on the repository. I can confirm that the same configuration works if I use the cloudinary-cli option.
If possible, please provide a link to a reproducible repository that showcases the problem