Return the path of uploaded files by their file types (path) and whether they are deleted (isDeleted) in Object form.
Name | Type | Description |
---|---|---|
fileType | string | File type whose information shall be imported. ("image", "video", "file") |
Return:
Type | Attribute | Description |
---|---|---|
Array | [ { path: "/upload/path/filename.png", isDeleted: false }, { path: "/upload/path/filename2.png", isDeleted: true }, .... ] | path and isDeleted data |
Example:
var filesData = editor.getUploadedFiles(); |
getUploadedFiles()
Return the path of uploaded files by their file types (path) and whether they are deleted (isDeleted) in Object form.
Name | Type | Description |
---|---|---|
fileType | String | When file type information is not entered |
Return:
Type | Attribute | Description |
---|---|---|
Object | { image: [ { path: "/upload/path/filename.png", isDeleted: false }, { path: "/upload/path/filename2.png", isDeleted: true }, .... ], video: [], file: [] } | path and isDeleted data |
Example:
var filesData = editor.getUploadedFiles(); |