#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.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019a677090d3-c83f3940-8ca3-4905-87e8-2d42d8370f9b-000000%40eu-central-1.amazonses.com.