Adapter (upload/adapters)
@ckeditor/ckeditor5-upload/src/adapters/simpleuploadadapter
Upload adapter.
Filtering
Properties
-
loader : FileLoadermodule:upload/adapters/simpleuploadadapter~Adapter#loaderFileLoader instance to use during the upload.
-
options : SimpleUploadConfigmodule:upload/adapters/simpleuploadadapter~Adapter#optionsThe configuration of the adapter.
Methods
-
constructor( loader, options )module:upload/adapters/simpleuploadadapter~Adapter#constructor -
abort() → Promisemodule:upload/adapters/simpleuploadadapter~Adapter#abort -
upload() → Promisemodule:upload/adapters/simpleuploadadapter~Adapter#upload -
private
_initListeners( resolve, reject, file )module:upload/adapters/simpleuploadadapter~Adapter#_initListenersInitializes XMLHttpRequest listeners
Parameters
resolve : functionCallback function to be called when the request is successful.
reject : functionCallback function to be called when the request cannot be completed.
file : FileNative File object.
-
Initializes the
XMLHttpRequestobject using the URL specified assimpleUpload.uploadUrlin the editor's configuration. -
Prepares the data and sends the request.
Parameters
file : FileFile 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.