업로드된 파일의 경로(path)와 삭제 여부(isDeleted)를 파일 타입별로 반환합니다.
Name | Type | Description |
|---|---|---|
| [fileType] | string | 정보를 가져올 파일 타입입니다. ("image", "video", "file") |
Return:
[fileType이 있는 경우]
| Type | Attribute | Description |
|---|---|---|
| Array | [
{ path: "/upload/path/filename.png", isDeleted: false },
{ path: "/upload/path/filename2.png", isDeleted: true },
//...
] | path: 업로드 경로 isDeleted: 에디터에서 해당 파일의 삭제 여부 |
[fileType이 없는 경우]
| Type | Attribute | Description |
|---|---|---|
| Object | {
image: [
{ path: "/upload/path/filename.png", isDeleted: false },
{ path: "/upload/path/filename2.png", isDeleted: true },
//...
],
video: [],
file: []
} | path: 업로드 경로 isDeleted: 에디터에서 해당 파일의 삭제 여부 |
Example:
var filesData = editor.getUploadedFiles();
var filesData2 = editor.getUploadedFiles('image'); |