Closed gaiar closed 12 months ago
@gaiar this is because you are using the name of the Structured Metadata instead of the external_id
. The following code works OK based on your settings:
metadata = {
"brand_name" : 'papillio',
"brandid" : 'PA6' --> This is the change
}
#{'brand_name': 'papillio', 'brandID': 'PA6'}
result = cloudinary.uploader.upload("url_of_file",public_id = "test_cloudinary",metadata = metadata)
Bug report for Cloudinary Python SDK
Version freshly installed from pip
Describe the bug in a sentence or two.
This call returns a cryptic error
If I remove the metadata field, everything works fine
This structure is on Cloudinary side
Issue Type (Can be multiple)
Steps to reproduce
Error screenshots or Stack Trace (if applicable)
…
Operating System
Environment and Frameworks (fill in the version numbers)