Opened 16 years ago
Closed 16 years ago
#7677 closed (duplicate)
InMemoryFile.read() doesn't work with newforms.ImageField
Reported by: | Florian Apolloner | Owned by: | nobody |
---|---|---|---|
Component: | Uncategorized | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Currently InMemoryFile.read() returns "", if you are using it in conjunction with ImageField. The reason seems to be that ImageField already reads the data, so the position is at -1 and a further read won't return anything.
I included a simple patch, although I am not quite sure, if it's the right way to fix it...
Attachments (1)
Change History (2)
by , 16 years ago
Attachment: | newforms_imagefix.diff added |
---|
comment:1 by , 16 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Duplicate of #7673. Putting updated patch there.