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 4948 Saving FileField files is not thread-safe anonymous Robert Coup "Picking the filename in [http://code.djangoproject.com/browser/django/trunk/django/db/models/base.py#L368 django.db.modes.Model._save_FIELD_file] is not thread-safe. There is an obvious racing condition if one thread will have found a non-existing filename and then a second thread will search for a non-existing name based on the same filename before the first thread starts to write the file. Because this function is probably most often called from the admin UI and the newforms frameworks doesn't support file upload yet, it isn't critical. Still, this kind of problems can cause difficult to debug problems." closed Core (Other) dev fixed fs-rf-docs Accepted 0 0 0 1 0 0