On Tuesday 06 June 2017 08:59:06 Tim Graham wrote: > The default behavior of FileSystemStorage is, "If a file with name > already exists, an underscore plus a random 7 character alphanumeric > string is appended to the filename before the extension." Do you want > to always overwrite existing files if a file with that name already > exists? That's a bit dangerous, but you can accomplish it by writing > a custom storage.
Or you can use a callable to upload_to if you don't care about being storage backend (filesystem) agnostic. -- Melvyn Sopacua -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3631214.eBugtbMbDk%40devstation. For more options, visit https://groups.google.com/d/optout.