djangosnippets.org: Latest snippets tagged with 'file storage'https://djangosnippets.org/tags/file-storage_1/2010-05-31T15:18:37-05:00Overwriting file storage2010-05-31T15:18:37-05:00rbanffyhttps://djangosnippets.org/snippets/2044/<p>Useful if you can make sure your files will never collide unless they share the same contents.
</p>
<p>You point to the storage parameter when you declare an ImageField and use the hashed_path class method (seemed to make sense to bundle it with the class) to build a custom upload_to method ...</p>
Freely redistributable