Open EvanZ opened 6 years ago
Sorry for the late response. Did you manage to resolve your issue?
If not can you provide more information about the error that you are receiving? Without the error I can't help you because I have not used ImageKit with Google Cloud.
Just declare thumbnail = serializers.ImageField(read_only=True)
in your serializer for ImageSpecField.
I'm uploading images to Google Cloud, and to display them to the client I want to create signed urls (this definitely works for my main ImageField). I'm using the same approach which is to derive a class from serializers.ImageField and override the
to_representation
class, but now I'm getting an error when I upload an image. I think it is expecting me to implementto_internal_value
, but my assumption is that this wouldn't make sense since ImageSpecField should take care of that.So I guess my question is how can I do something like this?