@salesforce/agents
    Preparing search index...

    Function prepareUploadFiles

    • Validate local files before any network call: at least one file, no two files sharing a basename (the service keys uploads by file name, so they would collide), every path an existing regular file, and every file within the size limit. Stats each file once and returns the sizes for the register step.

      Parameters

      • paths: string[]

      Returns LocalUploadFile[]