Report an issue
Class

UploadAdapter (adapter-ckfinder)

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

class private

Upload adapter for CKFinder.

Filtering

Properties

  • loader : FileLoader

    FileLoader instance to use during the upload.

  • t : Locale#t

    Locale translation method.

  • url : String

    Upload URL.

Methods

  • constructor( loader, url, t )

    Creates a new adapter instance.

    Parameters

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

    Aborts the upload process.

  • upload() → Promise.<Object>

    Starts the upload process.

    Returns

    Promise.<Object>

    Related:

  • _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

    File instance to be uploaded.

  • _initRequest()

    private

    Initializes the XMLHttpRequest object.

  • _sendRequest( file )

    private

    Prepares the data and sends the request.

    Parameters

    file : File

    File instance to be uploaded.