This API provides access to upload file content as instance, plugin, module or store item.
The filename
shall use one of this supported file endings:
Ending | Description |
---|---|
.instance.json | A JSON instance configuration file. |
.plugin.js | A JavaScript plugin file. The filename1 is used as the plugin ID. |
.js | A JavaScript module file. The filename1 is used as the module name. |
.store.txt | A plain text file for a store item. The filename1 is used as the key. |
1 Without file ending.
Property | Type | Description |
---|---|---|
fileContainer | The file container object. |
Property | Type | Description |
---|---|---|
filename | string |
The filename with a supported file ending. |
content | string |
UTF8 encoded file content. |
Property | Type | Description |
---|---|---|
message | string |
A detailed error message. |