code: def filename(self):
          
          if self._filename:
              return self._filename
          else:
              with tempfile.NamedTemporaryFile(delete=False) as f:
                  f.write(self._bytes)
              return f.name
docs: Returns the provided data as a file location.