Why do I get an "Invalid URL" message when trying to upload?

The 'Invalid URL' response for uploads usually happens when the content of the file is not properly encoded. 
We have had reported issues before when the upload method was given a StringIO object that did not have a filename attribute. If this is the case, try to do something like the following (in Python):

contents_temp = StringIO.StringIO(binary_content) 
contents_temp.name = 'file'
result = cloudinary.uploader.upload(contents_temp)
Have more questions? Submit a request


Powered by Zendesk