@nextcloud/upload
    Preparing search index...

    Function uploadConflictHandler

    • Helper function to create a conflict resolution callback for the Uploader.batchUpload method.

      This creates a callback that will open the conflict picker to resolve the conflicts. In case of a rename the new name is validated and the invalid filename dialog is shown an error happens there.

      Parameters

      • contentsCallback: (path: string) => Promise<Node[]>

        Callback to retrieve contents of a given path

      Returns (
          nodes: (File | IDirectory)[],
          path: string,
      ) => Promise<false | (File | IDirectory)[]>