Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Custom file store filename usage #205

Closed
narfanator opened this Issue · 2 comments

2 participants

@narfanator

I wrote a custom file store that returns a different filename on save, but that filename isn't then stored in the database - the old one is. I'm willing to believe that I'm doing it wrong, but I've followed the django and Easy Thumbnails docs, and near as I can tell I've got everything set up as I should.

Custom file storage: http://pastebin.com/2uAPc4s3
Usage, from a model declaration:

thumbnail = ThumbnailerImageField(upload_to='parse/', thumbnail_storage=ParseStorage(), blank=True, null=True)

@narfanator

Fixed, I think. I'm getting some errors elsewhere, but I think that's my user code.
files.py line 405:
--- save_thumbnail(thumbnail, self.thumbnail_storage)
+++ thumbnail.name = save_thumbnail(thumbnail, self.thumbnail_storage)

@narfanator

Nevermind. Totally not fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.