id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 2976 [patch] repr(uploadfile) should not contain the file content Jeong-Min Lee nobody "If uploadfile['content'] is very long, repr(uploadfile) produce non-readable stuff. It sometimes make a browser hang. A significant performance problem occur on following scenario. 1. You have a model that has many nullable/blankable fields with a FileField. 1. You upload big file, without filling nullable fields. 1. In view, manipulator.save is called. 1. for each field, validation is called. 1. for nullable field, while getting field from new_data, repr(new_data) is called, which trigger repr(upload_file) 1. repr(upload_file) is very long. It is called for each nullable field. this take long time. (taked 4s~12s for my app) Sorry for my poor explanation." defect closed Core (Other) dev major fixed Design decision needed 1 0 0 0 0 0