Opened 9 years ago

Closed 8 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: UI/UX:


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

Download all attachments as: .zip

Change History (5)

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

comment:1 Changed 8 years ago by jacob

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

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

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

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

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

  • Resolution set to fixed
  • Status changed from new to 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.
Back to Top