This object adds a upload path for the file type of uploaded file.

You may get the result from editor.getUploadedFiles() only when you have set the upload path during the upload through this method.

Parameters:

Name

Type

Description

fileTypeStringFile type whose upload path shall be added. ("image", "video", "file")
uploadPathStringPath in which the file is uploaded.


Example:

editor.addUploadPath("image", "upload/path/filename.png");



Example

1. Limiting the Number of Image Upload