change filenames of uploaded files
|Reported by:||George Karpenkov <admin@…>||Owned by:||adrian|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Right now when two files with identical name are uploaded, one of them will get '_' prefix.
I consider this solution quite ugly and impractical, because there are some situations when many files with same name will be uploaded. And when filename reaches critical length, problems will come up.
Consider online gallery, for example - how many users might wish to upload the picture called 'cat.jpg'?
I think the people from imageshack.us have created a good solution for that problem - hash from some value (number of files?) is added to the filename, and they get filenames like 'catfg3.jpg'
I believe that same thing should be implemented in Django.