Ticket #7658: file_upload_patch.patch

File file_upload_patch.patch, 372 bytes (added by justin.driscoll@…, 7 years ago)

Adds a "close" method to TemporaryUploadedFile.

  • uploadedfile.py

     
    131131
    132132    def open(self):
    133133        self.seek(0)
     134       
     135    def close(self):
     136        self.file.close()
    134137
    135138    def seek(self, *args, **kwargs):
    136139        self.file.seek(*args, **kwargs)
Back to Top