diff options
| -rw-r--r-- | AUTHORS | 2 | ||||
| -rw-r--r-- | django/core/files/uploadedfile.py | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -52,7 +52,7 @@ answer newbie questions, and generally made Django that much better: andy@jadedplanet.net Fabrice Aneche <akh@nobugware.com> ant9000@netwise.it - Florian Apolloner + Florian Apolloner <florian@apolloner.eu> arien <regexbot@gmail.com> David Ascher <http://ascher.ca/> Jökull Sólberg Auðunsson <jokullsolberg@gmail.com> diff --git a/django/core/files/uploadedfile.py b/django/core/files/uploadedfile.py index 9287a1bec8..7f515f94d4 100644 --- a/django/core/files/uploadedfile.py +++ b/django/core/files/uploadedfile.py @@ -193,7 +193,7 @@ class TemporaryUploadedFile(UploadedFile): """ Returns the full path of this file. """ - return self.name + return self._file.name # Most methods on this object get proxied to NamedTemporaryFile. # We can't directly subclass because NamedTemporaryFile is actually a |
