Return the path of uploaded files by their file types (path) and whether they are deleted (isDeleted) in Object form.


Parameters:

Name

Type

Description

fileTypestringFile type whose information shall be imported. ("image", "video", "file")


Return:

TypeAttributeDescription
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.


Parameters:

Name

Type

Description

fileTypeStringWhen file type information is not entered


Return:

TypeAttributeDescription
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();




Example

1. Limiting the Number of Image Upload