Custom filename generation algorithm partially when uploading duplicate filename.
Django django/core/files/storage.py get_available_name() method contains functions such as filename duplication checking, generating alternative filename, and filename truncation.
When customize alternative filename generation algorithm, sub classes must override all these functions in the get_available_name() method.
It is inconvenient if sub classes just customize only alternative filename generation algorithm.
Change History
(8)
Cc: |
Takayuki Hirayama added
|
Owner: |
changed from nobody to Takayuki Hirayama
|
Type: |
Uncategorized → Cleanup/optimization
|
Triage Stage: |
Unreviewed → Accepted
|
Needs documentation: |
unset
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
In 0545781: