Report an issue
Class

UploadAdapter (adapter-ckfinder)

@ckeditor/ckeditor5-adapter-ckfinder/src/uploadadapter

class private

Upload adapter for CKFinder.

Filtering

Properties

Methods

  • constructor( loader, url, t )

    Creates a new adapter instance.

    Parameters

    loader : FileLoader
    url : String
    t : Locale#t
  • abort() → Promise

    Aborts the upload process.

    Returns

    Promise
  • upload() → Promise

    Starts the upload process.

    Returns

    Promise
  • _initListeners( resolve, reject )

    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.

  • _initRequest()

    private

    Initializes the XMLHttpRequest object.

  • _sendRequest()

    private

    Prepares the data and sends the request.