#35818: Failing to save file with long names containing dots
-------------------------------------+-------------------------------------
Reporter: Bruno Alla | Owner: Bruno
| Alla
Type: Bug | Status: closed
Component: File | Version: 5.1
uploads/storage |
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Bruno Alla):
> You could also provide your custom Storage class.
I think that's a reasonable option to offer to users. However there is
currently not a good hook to easily override the storage extension
splitting logic, users will -I think- have to override the whole
`get_available_name` method, which is quite long and complex.
Carlton suggested to make this easier to customise in user-land, which
seem to strike a good balance between the maintainablity of Django and the
variety of use cases faced by users.
Would you be open to re-open this ticket to try to add such hook, along
the lines of something like `get_file_extensions()`?
--
Ticket URL: <https://code.djangoproject.com/ticket/35818#comment:7>
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 on the web visit
https://groups.google.com/d/msgid/django-updates/010701926ca8fbc5-8367b93e-0bc5-486a-99bf-fc6458954ff7-000000%40eu-central-1.amazonses.com.