UploadAdapter (adapter-ckfinder)
@ckeditor/ckeditor5-adapter-ckfinder/src/uploadadapter
class
private
Upload adapter for CKFinder.
Filtering
Properties
-
loader : FileLoader
module:adapter-ckfinder/uploadadapter~UploadAdapter#loader
FileLoader instance to use during the upload.
-
Locale translation method.
-
url : String
module:adapter-ckfinder/uploadadapter~UploadAdapter#url
Upload URL.
Methods
-
constructor( loader, url, t )
module:adapter-ckfinder/uploadadapter~UploadAdapter#constructor
-
abort()
module:adapter-ckfinder/uploadadapter~UploadAdapter#abort
-
upload() → Promise.<Object>
module:adapter-ckfinder/uploadadapter~UploadAdapter#upload
-
private
_initListeners( resolve, reject, file )
module:adapter-ckfinder/uploadadapter~UploadAdapter#_initListeners
Initializes XMLHttpRequest listeners.
Parameters
resolve : function
Callback function to be called when the request is successful.
reject : function
Callback function to be called when the request cannot be completed.
file : File
File instance to be uploaded.
-
Initializes the XMLHttpRequest object.
-
Prepares the data and sends the request.
Parameters
file : File
File instance to be uploaded.
Every day, we work hard to keep our documentation complete. Have you spotted outdated information? Is something missing? Please report it via our issue tracker.