Skip to content

octoprint.server.api.files#

WerkzeugFileWrapper #

Bases: octoprint.filemanager.util.AbstractFileWrapper

A wrapper around a Werkzeug FileStorage object.

Parameters:

Name Type Description Default
file_obj werkzeug.datastructures.FileStorage

The Werkzeug FileStorage instance to wrap.

required

.. 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

Back to top