This patch provide an easy way to obfuscated the names of the already
uploaded files, which I think, may be the desired behavior we may want by
default `at some stage`.
The global setting FILE_UPLOAD_USETIME_DUPLICATE try to remedy to this.
--
Ticket URL: <https://code.djangoproject.com/ticket/23183>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
PR: https://github.com/django/django/pull/3018
This is a PoC, I will fix the tests if this is accepted.
--
Ticket URL: <https://code.djangoproject.com/ticket/23183#comment:1>
Comment (by timo):
I think adding a hash rather than a timestamp (or even an option to
replace the filename with a hash) would be a better solution. Users may
not want to leak the time a file was uploaded. Adding a new setting is
usually a no go if there is a way to avoid it, but perhaps the setting
could be transitional as you've noted. It would be good to discuss this
ticket on the DevelopersMailingList.
--
Ticket URL: <https://code.djangoproject.com/ticket/23183#comment:2>
Comment (by areski):
Thanks for the feedback, a suggested I opened a discussion here
https://groups.google.com/forum/#!topic/django-developers/rjZbo4_W9jU
--
Ticket URL: <https://code.djangoproject.com/ticket/23183#comment:3>
* status: new => closed
* resolution: => duplicate
Comment:
We will address this in the fix for #23157. I am working on a patch.
--
Ticket URL: <https://code.djangoproject.com/ticket/23183#comment:4>