#27689: FileSystemStorage().get_valid_name() may return empty string
-------------------------------------+-------------------------------------
Reporter: Victor Porton | Owner: nobody
Type: Bug | Status: new
Component: File | Version: 1.10
uploads/storage |
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Tim Graham):
Perhaps you can explain your use case a bit more, but I don't think the
documentation implies that's a valid usage.
[https://docs.djangoproject.com/en/dev/howto/custom-file-
storage/#django.core.files.storage.get_valid_name It says]:
Returns a filename suitable for use with the underlying storage system.
The name argument passed to this method is either the original filename
sent to the server or, if upload_to is a callable, the filename returned
by that method after any path information is removed.
Anyway, if the issue is valid, what's the expected behavior -- to raise an
exception?
--
Ticket URL: <https://code.djangoproject.com/ticket/27689#comment:3>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.abc009004f9cd530ade7e02eda6d6559%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.