UploadAdapter (adapter-ckfinder)
@ckeditor/ckeditor5-adapter-ckfinder/src/uploadadapter
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
Creates a new adapter instance.
Parameters
loader : FileLoader
url : String
t : Locale#t
-
abort()
module:adapter-ckfinder/uploadadapter~UploadAdapter#abort
Aborts the upload process.
Related:
-
upload() → Promise.<Object>
module:adapter-ckfinder/uploadadapter~UploadAdapter#upload
Starts the upload process.
-
_initListeners( resolve, reject, file )
module:adapter-ckfinder/uploadadapter~UploadAdapter#_initListeners
private
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.
-
_initRequest()
module:adapter-ckfinder/uploadadapter~UploadAdapter#_initRequest
private
Initializes the XMLHttpRequest object.
-
_sendRequest( file )
module:adapter-ckfinder/uploadadapter~UploadAdapter#_sendRequest
private
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 an outdated information? Is something missing? Please report it via our issue tracker.