Opened 16 years ago
Closed 13 years ago
#11150 closed Bug (fixed)
ImageField validation depend on cStringIO
Reported by: | Vladimir Dmitriev | Owned by: | nobody |
---|---|---|---|
Component: | Forms | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | vldmit@… | Triage Stage: | Ready for checkin |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I've found that ImageField clean() method depend on reset() method of cStringIO library, and this breaks up StringIO compatibility. As a result, ValidationError is raised on uploading images on systems without cStringIO. I think it's better to use equivalent seek(0) method which is compatible with both StringIO and cStringIO.
Attachments (2)
Change History (10)
by , 16 years ago
Attachment: | imagefield_clean.patch added |
---|
comment:1 by , 15 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 14 years ago
Needs tests: | set |
---|---|
Severity: | → Normal |
Type: | → Uncategorized |
comment:3 by , 14 years ago
Type: | Uncategorized → Bug |
---|
comment:4 by , 13 years ago
UI/UX: | unset |
---|
comment:6 by , 13 years ago
Needs tests: | unset |
---|
comment:7 by , 13 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
Change UI/UX from NULL to False.