Class SaveFileRequest

SaveFileRequest - Represents a request to save a file.

Constructors

  • 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.

Properties

contentType: string
fieldId: number
fileName: string
fileStream: Readable
modifiedDate: Date
notes: string
recordId: number

Methods

  • Returns FormData

    • The SaveFileRequest as a FormData object.

    Method

    AsFormData - Converts the SaveFileRequest to a FormData object.