#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 [ticket:32718 Jakub Kleň]:
 > Correct me if I'm wrong, but file-like objects always contain the full
 path to the file in the `name` attribute (the built-in Django `File` class
 even uses it to reopen the file if it was closed), and so it seems to be a
 bug in Django itself.

 This is true, but according to my tests on earlier versions a full
 (absolute) path did fail already because it would usually be outside the
 MEDIA_ROOT. Can you provide some more details?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32718#comment:14>
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.3d6d99ca253db4af38928a0a1563a411%40djangoproject.com.

Reply via email to