Skip to main content

core.createbinaryoptions

Home > @medplum/core > CreateBinaryOptions

CreateBinaryOptions interface

Binary upload options.

Signature:

export interface CreateBinaryOptions 

Properties

Property

Modifiers

Type

Description

contentType

readonly

string

Content type for the binary.

data

readonly

BinarySource

The binary data to upload.

filename?

readonly

string

(Optional) Optional filename for the binary.

onProgress?

readonly

(e: ProgressEvent) => void

(Optional) Optional fetch options. **NOTE:** only requestOptions.signal is respected when onProgress is also provided.

securityContext?

readonly

Reference

(Optional) Optional security context for the binary.