Interface IAssetSources.IPrivateSourceConfig
A structure defining properties of the private user gallery.
Package: @aurigma/design-editor-iframe
Examples
{
"assetSources": {
"My files": {
"type": "PrivateSource",
"allowedExtensions": [ "jpg", "jpeg", "png", "bmp", "svg", "pdf" ],
"groupingByDateEnabled": true,
"autoInsertUploadedFile": true,
"overwrite": true,
"path": "order_3",
"actionMode": {
"pdf": "Shape",
"svg": "Shape"
}
}
}
}
Properties
autoInsertUploadedFile
If true, the Asset Manager closes as soon as it uploads a user image. After that, this image is automatically inserted into the placeholder or image layer. The default value is false.
Declaration
autoInsertUploadedFile?: boolean;
Property Value
| Type | Description |
|---|---|
| boolean | If |
groupingByDateEnabled
If true, arranges images by date. The list of dates when the user uploaded the images appears in the Categories. The default value is false.
Declaration
groupingByDateEnabled?: boolean;
Property Value
| Type | Description |
|---|---|
| boolean | If |
overwrite
Allows for overwriting images with existing names. If false, the name of the uploaded file is changed by adding _1, _2, etc. to it. The default value is false.
Declaration
overwrite?: boolean;
Property Value
| Type | Description |
|---|---|
| boolean | Allows for overwriting images with existing names. If |
path
A subfolder of userdata/user/images, where the Asset Manager saves uploaded files. By default, this is an empty string, and images are saved in the userdata/user/images folder.
Declaration
path?: string;
Property Value
| Type | Description |
|---|---|
| string | A subfolder of |