Adapter (upload/adapters)
@ckeditor/ckeditor5-upload/src/adapters/simpleuploadadapter
Upload adapter.
Filtering
Properties
-
loader : FileLoader
module:upload/adapters/simpleuploadadapter~Adapter#loader
FileLoader instance to use during the upload.
-
options : SimpleUploadConfig
module:upload/adapters/simpleuploadadapter~Adapter#options
The configuration of the adapter.
Methods
-
constructor( loader, options )
module:upload/adapters/simpleuploadadapter~Adapter#constructor
-
abort() → Promise
module:upload/adapters/simpleuploadadapter~Adapter#abort
-
upload() → Promise
module:upload/adapters/simpleuploadadapter~Adapter#upload
-
private
_initListeners( resolve, reject, file )
module:upload/adapters/simpleuploadadapter~Adapter#_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
Native File object.
-
Initializes the
XMLHttpRequest
object using the URL specified assimpleUpload.uploadUrl
in the editor's configuration. -
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.