Interface FileApi

This API provides functionality related to uploading files.

Accessed from the window at window.sas.vi.file.

window.sas.vi.file.uploadToVIFolder(file, "fileName")
interface FileApi {
    uploadToViFolder(file: File, fileName?: string): Promise<SASUploadedFile>;
}

Methods

  • Parameters

    • file: File

      {File} File to be uploaded.

    • OptionalfileName: string

      {string} Name to give to the file to upload.

    Returns Promise<SASUploadedFile>

    Promise containing the uploaded file.

    Uploads the file to the SAS Visual Investigator folder without attaching it to an object.