Re: hashed file name on ImageField

2009-03-19 Thread Chris Van Horne
Seems I found a way around this by overriding the 'save' method on the model which has the ImageField. On Mar 19, 1:11 pm, Chris Van Horne wrote: > Hello, > > I am looking to modify ImageField so that the filename saved to disk > is a hashed (sha1 or md5) digest. I have looked at the documentati

hashed file name on ImageField

2009-03-19 Thread Chris Van Horne
Hello, I am looking to modify ImageField so that the filename saved to disk is a hashed (sha1 or md5) digest. I have looked at the documentation and it seemed to point me towards subclassing django.core.files.storage.Storage but I haven't had any luck--worse, I'm not sure if this is the "correct"