Cloudinary with Exiffield and ImageSpecField not working in Django
Hi, I cannot get images to upload in Django, when using ImageField in a Django Model which also has a ExifFields (to grab image info) and ImageSpecField (to resize images).
Cloudinary is install fine and setting are correct, i've tested upload in another model and it works fine. Pretty sure it's something to do with ExifField or ImageSpecField, but these are vital to my models and don't want to have to recode everything.
I get in admin - Exception Value:Empty file
error. When uploading.
An when trying to run site I get. 400 Client Error: Bad Request for url: https://res.cloudinary.com/ **path to file***
-
Hi Robert,
The error indicates that the `file` parameter for the Cloudinary Upload API was not available. We have a sample Django project where you can see the `CloudinaryField` is used as part of the project model, and it is imported using the `cloudinary.models` from our Python SDK PyCloudinary.
Hope this helps. Thanks.
Post is closed for comments.
Comments
1 comment