Opened 17 years ago

Closed 16 years ago

#5386 closed (fixed)

content type for newforms.UploadedFile

Reported by: Petr Marhoun <petr.marhoun@…> 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)

file-field-content-type.diff (951 bytes ) - added by Petr Marhoun <petr.marhoun@…> 17 years ago.
newforms.content_type.diff (1.8 KB ) - added by Ionut Ciocirlan <ionut.ciocirlan@…> 17 years ago.

Download all attachments as: .zip

Change History (5)

by Petr Marhoun <petr.marhoun@…>, 17 years ago

comment:1 by Jacob, 17 years ago

Triage Stage: UnreviewedAccepted

by Ionut Ciocirlan <ionut.ciocirlan@…>, 17 years ago

Attachment: newforms.content_type.diff added

comment:2 by Ionut Ciocirlan <ionut.ciocirlan@…>, 17 years ago

Attached a patch that applies against rev. 7397. Also updated documentation.

comment:3 by Petr Marhoun <petr.marhoun@…>, 16 years ago

Resolution: fixed
Status: newclosed

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.
Back to Top