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