django-filer icon indicating copy to clipboard operation
django-filer copied to clipboard

[Feature Request] Utility function randomized filenames

Open negativefix opened this issue 9 years ago • 1 comments

I realized that filer.utils.generate_filename.randomized utility function only generates randomized folder structure and keeps the original name of the file uploaded. But I felt a little uncomfortable keeping the original file names when I am uploading large number of images. It's not because I am worried about collision or something but I am little bit obsessive about that my filenames should follow a pattern. I thought it would be good if filer had provided it. It could be another simple utility function which may generate filenames as below.

ext = filename.split('.')[-1]
filename = "%s.%s" % (uuid.uuid4().hex, ext)

negativefix avatar Apr 10 '15 19:04 negativefix

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 28 '22 23:07 stale[bot]

This will now be closed due to inactivity, but feel free to reopen it.

stale[bot] avatar Aug 30 '22 17:08 stale[bot]