Opened 17 years ago
Closed 16 years ago
#5386 closed (fixed)
content type for newforms.UploadedFile
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Forms | Version: | dev |
Severity: | Keywords: | newforms, file uploads | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I think that it would be nice if django.newforms.UploadedFile has attribute content_type - see the attached patch.
Attachments (2)
Change History (5)
by , 17 years ago
Attachment: | file-field-content-type.diff added |
---|
comment:1 by , 17 years ago
Triage Stage: | Unreviewed → Accepted |
---|
by , 17 years ago
Attachment: | newforms.content_type.diff added |
---|
comment:2 by , 17 years ago
comment:3 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
It is fixed now - FileField returns by default django.core.files.uploadedfile.UploadedFile - with attribute content_type. So I think this ticket could be closed.
Note:
See TracTickets
for help on using tickets.
Attached a patch that applies against rev. 7397. Also updated documentation.