djangosnippets.org: Latest snippets tagged with 'file-storage'https://djangosnippets.org/tags/file-storage/2012-01-06T18:10:51.917272-06:00Image uploader to use with file uploader from http://github.com/valums/file-uploader
2012-01-06T18:10:51.917272-06:00tgdnhttps://djangosnippets.org/snippets/2639/<p>Upload an image with file-uploader from http://github.com/valums/file-uploader
and save it to disk with the snippet and also to database if you want to</p>
Freely redistributableOverwriting file storage
2010-08-24T10:22:03.882594-05:00woleverhttps://djangosnippets.org/snippets/2173/<p>The title says it all — a subclass of FileSystemStorage which will overwrite files.</p>
<p>Note that saves which fail part way though will leave the original file intact (see <code>test_upload_fails</code>).</p>
<p>Based roughly on http://djangosnippets.org/snippets/2044/ .</p>
Freely redistributableFile storage with a better rename method
2009-07-30T03:28:19.086246-05:00SmileyChrishttps://djangosnippets.org/snippets/1658/<p>A file storage which uses a more sane rename method for existing files.
</p>
<p>Add <code>DEFAULT_FILE_STORAGE = 'site.storage.BetterNameFileSystemStorage'</code> (obviously changing <code>site.storage</code> to the module which you put this inside)
</p>
Freely redistributable