IBM Aspera JavaScript Library
    Preparing search index...

    Function createDropzone

    • Create a dropzone for the given element selector. Creating a dropzone for a selector that already has one replaces it.

      Dropzones created while Connect is the transfer client are moved over automatically if the SDK later stops using Connect (see Connect fallback in initSession). They are re-attached to the elements matching the selector at that time.

      Parameters

      • callback: (data: DropzoneEventData) => void

        the function to call once the files are dropped

      • elementSelector: string

        the selector of the element on the page that should watch for drop events

      • Optionaloptions: DropzoneOptions

        options to configure which drag and drop events trigger the listener

      Returns void