.. _object_WebServerFilesStorage: :index:`WebServerFilesStorage` ------------------------------ Description *********** The WebServerFilesStorage object provides access to data files served by a :ref:`WebServerService `. It can be used to implement apps which dynamically generate downloadable content which is accessible through the web server at the ``/incore`` location, e.g. ``http://192.168.123.1/incore/foo.csv``. This object was introduced in InCore 2.1. :**› Inherits**: :ref:`Storage ` Overview ******** Properties ++++++++++ .. hlist:: :columns: 2 * :ref:`persistent ` * :ref:`Storage.available ` * :ref:`Storage.bytesFree ` * :ref:`Storage.bytesTotal ` * :ref:`Storage.path ` * :ref:`Storage.readOnly ` * :ref:`Object.objectId ` * :ref:`Object.parent ` Methods +++++++ .. hlist:: :columns: 1 * :ref:`Object.deserializeProperties() ` * :ref:`Object.fromJson() ` * :ref:`Object.serializeProperties() ` * :ref:`Object.toJson() ` Signals +++++++ .. hlist:: :columns: 1 * :ref:`Object.completed() ` Properties ********** .. _property_WebServerFilesStorage_persistent: .. _signal_WebServerFilesStorage_persistentChanged: .. index:: single: persistent persistent ++++++++++ This property defines whether to store files on this storage persistently. When set to ``false`` all files are stored in memory only (similar to :ref:`InMemoryStorage `) and are lost on every restart of the device. Otherwise files are stored on the data partition of the local device (similar to :ref:`LocalStorage `). :**› Type**: Boolean :**› Default**: ``false`` :**› Signal**: persistentChanged() :**› Attributes**: Writable