Opened 11 years ago

Closed 10 years ago

#5386 closed (fixed)

content type for newforms.UploadedFile

Reported by: Petr Marhoun <petr.marhoun@…> Owned by: nobody
Component: Forms Version: master
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


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@…> 11 years ago.
newforms.content_type.diff (1.8 KB) - added by Ionut Ciocirlan <ionut.ciocirlan@…> 10 years ago.

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by Petr Marhoun <petr.marhoun@…>

comment:1 Changed 11 years ago by Jacob

Triage Stage: UnreviewedAccepted

Changed 10 years ago by Ionut Ciocirlan <ionut.ciocirlan@…>

Attachment: newforms.content_type.diff added

comment:2 Changed 10 years ago by Ionut Ciocirlan <ionut.ciocirlan@…>

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

comment:3 Changed 10 years ago by Petr Marhoun <petr.marhoun@…>

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