#31684: Document upload_to method behavior when duplicate file is present
-------------------------------------+-------------------------------------
               Reporter:  Matthew    |          Owner:  nobody
  Pava                               |
                   Type:             |         Status:  new
  Cleanup/optimization               |
              Component:             |        Version:  master
  Documentation                      |
               Severity:  Normal     |       Keywords:  FileField upload_to
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  1
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 I have a FileField with a custom upload_to method that generates a
 completely new path and filename. In my unit tests, I discovered that the
 default behavior of adding random characters to the end of the file name
 was enabled when the file name already existed. It took me a week to
 figure this out. Documenting this fact would have been incredibly helpful.

 
https://docs.djangoproject.com/en/3.0/ref/models/fields/#django.db.models.FileField.upload_to

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31684>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/049.e5fbabd791f6299e9d5ed737fdd37783%40djangoproject.com.

Reply via email to