onspring-api-sdk
    Preparing search index...

    Class SaveFileRequest

    SaveFileRequest - Represents a request to save a file.

    Index
    • Parameters

      • recordId: number

        The id of the record that the file will be saved to.

      • fieldId: number

        The id of the field that the file will be saved to.

      • notes: string

        The notes for the file.

      • modifiedDate: Date

        The modified date for the file.

      • fileName: string

        The name of the file.

      • contentType: string

        The content type of the file.

      • fileStream: Readable

        The file stream.

      Returns SaveFileRequest

      • A new SaveFileRequest.
    contentType: string
    fieldId: number
    fileName: string
    fileStream: Readable
    modifiedDate: Date
    notes: string
    recordId: number
    • Returns FormData

      • The SaveFileRequest as a FormData object.

      AsFormData - Converts the SaveFileRequest to a FormData object.