#36719: django.core.files.storage.base.Storage.get_availabe_name and
get_alternative_name assumes that filenames contain only one dot: the dot
of the extenstion.
-------------------------------------+-------------------------------------
Reporter: Abdulelah Taher | Type: Bug
Status: new | Component: File
| uploads/storage
Version: 5.2 | Severity: Normal
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
If I have a file named 'a.b.pdf'
then get_alternative_name would return 'a_{random}.b.pdf'
which is not correct.
the random string should between the filename and the actual extension:
'a.b_{random}.pdf'.
--
Ticket URL: <
https://code.djangoproject.com/ticket/36719>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.