Re: [Django] #13721: pass extra content-type values to file upload handlers

12 views
Skip to first unread message

Django

unread,
May 5, 2011, 2:47:42 PM5/5/11
to django-...@googlegroups.com
#13721: pass extra content-type values to file upload handlers
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
wkornewald | Status: new
Type: New | Component: File
feature | uploads/storage
Milestone: 1.3 | Severity: Normal
Version: 1.2 | Keywords:
Resolution: | Has patch: 1
Triage Stage: Accepted | Needs tests: 0
Needs documentation: 0 | Easy pickings: 0
Patch needs improvement: 1 |
-------------------------------------+-------------------------------------
Changes (by patchhammer):

* needs_better_patch: 0 => 1
* easy: => 0


Comment:

content_type_extra.diff fails to apply cleanly on to trunk

--
Ticket URL: <http://code.djangoproject.com/ticket/13721#comment:11>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
May 20, 2011, 3:00:56 AM5/20/11
to django-...@googlegroups.com
#13721: pass extra content-type values to file upload handlers
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
wkornewald | Status: new
Type: New | Component: File
feature | uploads/storage
Milestone: 1.4 | Severity: Normal
Version: SVN | Keywords:
Resolution: | Has patch: 1
Triage Stage: Accepted | Needs tests: 0
Needs documentation: 0 | Easy pickings: 0
Patch needs improvement: 0 |
-------------------------------------+-------------------------------------
Changes (by wkornewald):

* needs_better_patch: 1 => 0
* version: 1.2 => SVN
* milestone: 1.3 => 1.4


Comment:

I've updated the patch.

--
Ticket URL: <https://code.djangoproject.com/ticket/13721#comment:12>

Django

unread,
Dec 14, 2011, 4:57:07 AM12/14/11
to django-...@googlegroups.com
#13721: pass extra content-type values to file upload handlers
--------------------------------------+------------------------------------
Reporter: wkornewald | Owner: nobody
Type: New feature | Status: new
Component: File uploads/storage | Version: SVN
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by wkornewald):

* cc: wkornewald@… (removed)
* ui_ux: => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/13721#comment:14>

Django

unread,
Nov 28, 2012, 6:02:02 PM11/28/12
to django-...@googlegroups.com
#13721: pass extra content-type values to file upload handlers
--------------------------------------+------------------------------------
Reporter: wkornewald | Owner: nobody
Type: New feature | Status: new
Component: File uploads/storage | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by grant.callaghan@…):

+1. I would really like to see this patch applied

--
Ticket URL: <https://code.djangoproject.com/ticket/13721#comment:15>

Django

unread,
Nov 28, 2012, 6:02:54 PM11/28/12
to django-...@googlegroups.com
#13721: pass extra content-type values to file upload handlers
--------------------------------------+------------------------------------
Reporter: wkornewald | Owner: nobody
Type: New feature | Status: new
Component: File uploads/storage | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by anonymous):

* easy: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/13721#comment:16>

Django

unread,
Feb 24, 2013, 9:14:00 AM2/24/13
to django-...@googlegroups.com
#13721: pass extra content-type values to file upload handlers
--------------------------------------+------------------------------------
Reporter: wkornewald | Owner: mvschaik
Type: New feature | Status: assigned

Component: File uploads/storage | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by mvschaik):

* owner: nobody => mvschaik
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/13721#comment:17>

Django

unread,
Apr 18, 2013, 2:31:42 PM4/18/13
to django-...@googlegroups.com
#13721: pass extra content-type values to file upload handlers
--------------------------------------+------------------------------------
Reporter: wkornewald | Owner: mvschaik
Type: New feature | Status: assigned
Component: File uploads/storage | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by kagia):

* needs_better_patch: 0 => 1


Comment:

line 34 and 35 of the patch are made redundant by the previous line:

{{{
content_type_extra = meta_data.get('content-type', (0, {}))[1]
}}}

`content_type_extra` is then guaranteed not to be `None`.

--
Ticket URL: <https://code.djangoproject.com/ticket/13721#comment:18>

Django

unread,
Apr 20, 2013, 5:39:27 PM4/20/13
to django-...@googlegroups.com
#13721: pass extra content-type values to file upload handlers
--------------------------------------+------------------------------------
Reporter: wkornewald | Owner: mvschaik
Type: New feature | Status: assigned
Component: File uploads/storage | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by kagia):

@mvschaik are you still working on this? You may want to take a look at
this [https://github.com/kagia/django/compare/ticket_13721 my branch]

--
Ticket URL: <https://code.djangoproject.com/ticket/13721#comment:19>

Django

unread,
Jun 24, 2013, 4:26:45 PM6/24/13
to django-...@googlegroups.com
#13721: pass extra content-type values to file upload handlers
--------------------------------------+------------------------------------
Reporter: wkornewald | Owner: mvschaik
Type: New feature | Status: assigned
Component: File uploads/storage | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by timo):

* cc: timograham@… (added)


* needs_better_patch: 1 => 0


Comment:

Edited version of kagia's branch:
https://github.com/django/django/pull/1301

--
Ticket URL: <https://code.djangoproject.com/ticket/13721#comment:20>

Django

unread,
Jul 11, 2013, 9:13:04 AM7/11/13
to django-...@googlegroups.com
#13721: pass extra content-type values to file upload handlers
--------------------------------------+------------------------------------
Reporter: wkornewald | Owner: mvschaik
Type: New feature | Status: closed

Component: File uploads/storage | Version: master
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"b0953dc91385fb2823294a76d3c99e01c7b7e4ee"]:
{{{
#!CommitTicketReference repository=""
revision="b0953dc91385fb2823294a76d3c99e01c7b7e4ee"
Fixed #13721 -- Added UploadedFile.content_type_extra.

Thanks Waldemar Kornewald and mvschaik for work on the patch.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/13721#comment:21>

Django

unread,
Feb 18, 2014, 7:50:06 AM2/18/14
to django-...@googlegroups.com
#13721: pass extra content-type values to file upload handlers
--------------------------------------+------------------------------------
Reporter: wkornewald | Owner: mvschaik
Type: New feature | Status: closed
Component: File uploads/storage | Version: master
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"d3e33fff12266b51ab1488f7094855aef6061e9e"]:
{{{
#!CommitTicketReference repository=""
revision="d3e33fff12266b51ab1488f7094855aef6061e9e"
Made content_type_extra optional for TemporaryUploadedFile and
MemoryUploadedFile.

This provides better backwards compatibility for those constructing these
objects manually.

Refs #13721.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/13721#comment:22>

Django

unread,
Jul 29, 2014, 11:31:54 AM7/29/14
to django-...@googlegroups.com
#13721: pass extra content-type values to file upload handlers
--------------------------------------+------------------------------------
Reporter: wkornewald | Owner: mvschaik
Type: New feature | Status: closed
Component: File uploads/storage | Version: master
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by Gabe):

Hi guys!

I'm using Django 1.5 with Python 2.7 running in Google App Engine. I got
into this project recently, the former programmers didn't use the webapp
framework, but now I have to be able to make file upload possible with
large files (GAE doesn't allow more than 1 MB). I tried to make blobstore
work, but I couldn't, then I started looking into this stuff and found
this patch. Is it possible to make this patch work with GAE?

Thanks in advance!

Gabe

--
Ticket URL: <https://code.djangoproject.com/ticket/13721#comment:23>

Django

unread,
Jul 29, 2014, 11:35:41 AM7/29/14
to django-...@googlegroups.com
#13721: pass extra content-type values to file upload handlers
--------------------------------------+------------------------------------
Reporter: wkornewald | Owner: mvschaik
Type: New feature | Status: closed
Component: File uploads/storage | Version: master
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by timo):

Hi Gabe, this ticket trackers isn't a support channel. Please see
https://docs.djangoproject.com/en/stable/faq/help/ for ways to get help.
Thanks!

--
Ticket URL: <https://code.djangoproject.com/ticket/13721#comment:24>

Reply all
Reply to author
Forward
0 new messages