Upload to Cloudinary with .Net SDK - Invalid Signature
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
Research direction
Start by reproducing the supplied C# example with Cloudinary.Upload, ImageUploadParams, AddCustomParam, and SignatureAlgorithm.SHA256. Compare the generated signature and server string to the documented upload parameters, then check how the SDK interprets Metadata versus custom parameters. Done means the documented metadata upload produces a valid signature and the request succeeds.
Written by the indexing model from the issue text.
Description
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)
- Build - Cannot install or import the SDK
- Performance - Performance issues
- [ X ] Behaviour - Functions are not working as expected (such as generate URL)
- [ X ] Documentation - Inconsistency between the docs and behaviour
- Other (Specify)
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
- Linux
- [ X ] Windows
- [ X ] macOS
- MultiPlatform
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
- Dominant language
- C#
- Stars
- 105
- Forks
- 72
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cloudinary/CloudinaryDotNet
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
cloudinary/CloudinaryDotNet#387 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
cloudinary/CloudinaryDotNet#383 · 1 comment ·
-
Create New Sample Project with Generative AI and Special Use CasesMay be free again @Nupoor10 claimed this 768 days ago, and no pull request is open. Open
Difficulty 5/5 Over a week Newbie friendliness 20/100
cloudinary/CloudinaryDotNet#369 · 4 comments ·
-
Update the Sample ProjectMay be free again @arya2004 claimed this 772 days ago, and no pull request is open. Open
cloudinary/CloudinaryDotNet#368 · 4 comments · 1 assignee ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
cloudinary/CloudinaryDotNet#362 · 1 comment ·
All issues in cloudinary/CloudinaryDotNet
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
a-corriger documentation
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
christian-raj/S-Aloha#312 ·
-
ready-for-agent tech-debt
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
DigiBanks99/menlo#640 ·
Maintainers usually reply within 1 day
-
ci
Difficulty 1/5 Under an hour Newbie friendliness 62/100
OpenTabletDriver/OpenTabletDriver#5283 ·
Maintainers usually reply within 3 days
-
area / templates
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
bitfoundation/bitplatform#15109 ·
Maintainers usually reply within 1 day