Transferred from: http://jingyan.baidu.com/article/20b68a88699c16796cec6282.html
Kendo the image browser in the UI Web opens a simple dialog box by default, as shown in the following figure, which allows users to type or paste the URL of a picture and specify a tooltip.
From KendoUIQ3 2012, the editor's component supports a new way of selecting images, which also supports image uploads by browsing the list and directory of pre-defined files.
The image browser requires a server-side implementation to retrieve and upload files and directories.
Configuring the ImageBrowser image browser
With the configuration options of the ImageBrowser image browser, you can efficiently configure the ImageBrowser image browser.
requests and responses for Create/read/destroy/upload operations can be implemented as follows:
The name here is either a file or a path, the type is "F" for the filename, or "D" for the Directory rectory, and size is the file.
Destroy--the request can be made with the following parameters.
name– Select the files and directories you want to delete
path– the path of the file/directory in the directory
type– Enter the file or path to be deleted (f or D)
Size of the size– file
Upload-sends a request to Uploadurl, which contains the upload file and expects a file object to respond.