#33993: Allow instance to be passed into the FileField storage callable param
-------------------------------------+-------------------------------------
     Reporter:  Viicos               |                    Owner:  nobody
         Type:  New feature          |                   Status:  closed
    Component:  File                 |                  Version:  dev
  uploads/storage                    |
     Severity:  Normal               |               Resolution:  needsinfo
     Keywords:  callable, storage,   |             Triage Stage:
  filefield                          |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

 * status:  new => closed
 * resolution:   => needsinfo


Comment:

 This looks likely feasible for the `generate_filename` usage, but I can't
 see immediately whether there'd be issues with `path` and `url` and so on.
 (After file creation, we get the filename from the storage, so we'd need
 to handle not having that available.)

 I'd like to say that if you can put together a proof-of-concept PR, that
 doesn't break anything, and isn't too complex then we can move forward,
 but I think seeing that would be good before just accepting.

 Thanks!

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33993#comment:2>
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/010701831c413973-1f5d61e1-39d6-4b77-9697-9619bae376d9-000000%40eu-central-1.amazonses.com.

Reply via email to