Ticket #7675: uploaded_file_fix.diff

File uploaded_file_fix.diff, 536 bytes (added by apollo13, 7 years ago)
  • django/core/files/uploadedfile.py

    diff --git a/django/core/files/uploadedfile.py b/django/core/files/uploadedfile.py
    index 9287a1b..7f515f9 100644
    a b class TemporaryUploadedFile(UploadedFile): 
    193193        """
    194194        Returns the full path of this file.
    195195        """
    196         return self.name
     196        return self._file.name
    197197   
    198198    # Most methods on this object get proxied to NamedTemporaryFile.
    199199    # We can't directly subclass because NamedTemporaryFile is actually a
Back to Top