#8208: ImageField does not set width/height_field using 'actual' file
-------------------------------------------+--------------------------------
Reporter: vicvicvic | Owner:
Status: new | Milestone: 1.0
Component: File uploads/storage | Version: SVN
Resolution: | Keywords:
Stage: Accepted | Has_patch: 1
Needs_docs: 1 | Needs_tests: 0
Needs_better_patch: 1 |
-------------------------------------------+--------------------------------
Changes (by Gulopine):
* owner: Gulopine =>
* needs_better_patch: 0 => 1
* status: assigned => new
* needs_docs: 0 => 1
Comment:
As I mentioned in the thread mentioned in this ticket's description, I
think the best way to approach this is to subclass `FieldFile` (or
`ImageFieldFile`, etc) and do your transformations there, before they get
passed to the `Storage` object. That way, you have access to both the
before and after and you could pick which one you want to use when
updating information. It might still be worth explaining this stance a bit
better in the docs, but I'm not sure I have time to write it at the
moment. I'll see what I can do, but if somebody else wants to take a stab
at some documentation for this, feel free.
--
Ticket URL: <http://code.djangoproject.com/ticket/8208#comment:5>
Django Code <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---