• Upload an attachment.

    Parameters

    • endpoint: VerdocsEndpoint
    • envelopeId: string
    • fieldName: string
    • file: File
    • Optional onUploadProgress: ((percent, loadedBytes, totalBytes) => void)
        • (percent, loadedBytes, totalBytes): void
        • Parameters

          • percent: number
          • loadedBytes: number
          • totalBytes: number

          Returns void

    Returns Promise<IEnvelopeFieldSettings>