Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#2030 closed defect (wontfix)

When hitting a problem with an upload the DEBUG screen will display full file contents

Reported by: asmodai@… Owned by: Adrian Holovaty
Component: Core (Other) Version: master
Severity: normal Keywords: upload
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


Currently when you are testing file uploads and you hit a problem you will get a DEBUG screen which will have your FileField data in the debugging information. The only downside is that if you have a file of, say, 5 MB, the DEBUG screen will show all 5 MB of that data in the appropriate dict value for the FileField key.
This is not what you would want to see because it in general will slow your browser down considerably.
Perhaps this can be stripped/masked out before dumping into the DEBUG screen.

Change History (3)

comment:1 Changed 12 years ago by Adrian Holovaty

Resolution: wontfix
Status: newclosed

I don't think this one is worth fixing, because it'd be hard to target FileFields in the debug output. We're already explicitly *not* displaying request.FILE in the debug output.

comment:2 Changed 12 years ago by Simon Willison

How about setting up the DEBUG screen to truncate any value that's longer than 2000 characters? That would solve this problem without needing a special case for file upload fields.

comment:3 Changed 11 years ago by (none)

milestone: Version 1.0

Milestone Version 1.0 deleted

Note: See TracTickets for help on using tickets.
Back to Top