saveEmbeddedFolderFile(folderPath, embeddedFilename, data) Last updated: 30. May 2026
API only function
Saves an embedded file to the properties of an existing Docly folder.
Note that embedded files that are not referenced by a field in the folder properties document will be automatically deleted.
See also: Path traversal
Parameters
| Name | Type | Description |
|---|---|---|
| folderPath | string | Absolute path to the existing Docly folder to save the embedded file to. |
| embeddedFilename | string | Long unique filename for the resource to save (guid + extension). |
| data | byte[] / base64 | The file content to embed, as a byte array or base64-encoded string. |
Returns
Boolean, true if successful otherwise throws an error.
If an embedded file with the same name already exists for this folder, this function throws an error (GUID names should always be used to avoid name conflicts).