#24105: When upload_to is callable, storage.get_valid_name() does not get called
-------------------------------------+-------------------------------------
Reporter: jbowen7 | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: File | Version: master
uploads/storage |
Severity: Normal | Resolution:
Keywords: upload_to, | Triage Stage: Accepted
get_valid_name |
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by abhaga):
* version: 1.7 => master
Comment:
With this change, the documentation of get_valid_name should also be
updated to clarify that the passed name might come from `upload_to` also.
[https://docs.djangoproject.com/en/1.7/howto/custom-file-storage/]
{{{
get_valid_name(name)ΒΆ
Returns a filename suitable for use with the underlying storage system.
The name argument passed to this method is the original filename sent to
the server, after having any path information removed.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24105#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.290be3d6a4ee93be945f0a1ec2f43049%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.