Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

업로드된 파일의 경로(path)와 삭제 여부(isDeleted)를 파일 타입별로 반환합니다.

이 함수에서 적절한 정보를 얻어오려면 afterUploadFile, afterUploadImage, afterUploadVideo 이벤트에서 addUploadPath를 이용해서 업로드된 파일정보를 추가해주어야 합니다.

Parameters:

Name

Type

Description

[fileType]string정보를 가져올 파일 타입입니다. ("image", "video", "file")optional


Return:

[fileType이 있는 경우]

TypeAttributeDescription
Array
[
	{ path: "/upload/path/filename.png", isDeleted: false },
	{ path: "/upload/path/filename2.png", isDeleted: true },
	//...
]

path: 업로드 경로

isDeleted: 에디터에서 해당 파일의 삭제 여부

...