django-filer
django-filer copied to clipboard
[Feature Request] Utility function randomized filenames
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)
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.
This will now be closed due to inactivity, but feel free to reopen it.