(self, file_obj, **kwargs)
| 1776 | self._mark_as_changed() |
| 1777 | |
| 1778 | def put(self, file_obj, **kwargs): |
| 1779 | if self.grid_id: |
| 1780 | raise GridFSError( |
| 1781 | "This document already has a file. Either delete " |
| 1782 | "it or call replace to overwrite it" |
| 1783 | ) |
| 1784 | self.grid_id = self.fs.put(file_obj, **kwargs) |
| 1785 | self._mark_as_changed() |
| 1786 | |
| 1787 | def write(self, string): |
| 1788 | if self.grid_id: |