Code

Opened 8 years ago

Closed 8 years ago

Last modified 7 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
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:

Description

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.

Attachments (0)

Change History (3)

comment:1 Changed 8 years ago by adrian

  • Resolution set to wontfix
  • Status changed from new to closed

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 8 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 7 years ago by anonymous

  • milestone Version 1.0 deleted

Milestone Version 1.0 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.