#32718: [3.2.1] Issue with assigning file to FileField
-------------------------------------+-------------------------------------
Reporter: Jakub Kleň | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 2.2
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: 3.2.1 file model | Triage Stage: Accepted
filefield fieldfile |
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Florian Apolloner):
Replying to [comment:23 Phillip Marshall]:
> please look at the readme to see my full comments and traceback:
https://github.com/wizpig64/django_32718_repro
>
> disclaimer: i don't use upload_to strings, just upload_to functions, so
i dont know how to account for those users.
Perfect, this explains a lot! Your `upload_to` basically ignores the
passed filename (aside from the extension). Now we have a check before you
even get the filename which ensures that there is no full path.
--
Ticket URL: <https://code.djangoproject.com/ticket/32718#comment:26>
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/064.d21f3c25b03ad73de10ad9abdf22e2ab%40djangoproject.com.