Skip to content

octoprint.server.api.files#

WerkzeugFileWrapper(file_obj) #

Bases: octoprint.filemanager.util.AbstractFileWrapper

A wrapper around a Werkzeug FileStorage object.

Parameters:

  • file_obj (werkzeug.datastructures.FileStorage) –

    The Werkzeug FileStorage instance to wrap.

.. seealso::

werkzeug.datastructures.FileStorage <http://werkzeug.pocoo.org/docs/0.10/datastructures/#werkzeug.datastructures.FileStorage>_ The documentation of Werkzeug's FileStorage class.

save(path) #

Delegates to werkzeug.datastructures.FileStorage.save

stream() #

Returns werkzeug.datastructures.FileStorage.stream