Skip to content

weixin-ts / cdn/src / UploadMediaOptions

Interface: UploadMediaOptions ​

Defined in: cdn/src/upload.ts:27

Options for the upload pipeline

Properties ​

apiOptions ​

apiOptions: object

Defined in: cdn/src/upload.ts:35

API options for getUploadUrl

baseUrl ​

baseUrl: string

timeoutMs? ​

optional timeoutMs?: number

token? ​

optional token?: string

version? ​

optional version?: string

SDK version string for channel_version

Default ​
ts
'0.0.1'

cdnBaseUrl ​

cdnBaseUrl: string

Defined in: cdn/src/upload.ts:43

CDN base URL for upload


debug? ​

optional debug?: (...args) => void

Defined in: cdn/src/upload.ts:45

Optional debug logger for diagnosing CDN upload issues

Parameters ​

args ​

...unknown[]

Returns ​

void


file ​

file: ArrayBuffer | Uint8Array<ArrayBufferLike>

Defined in: cdn/src/upload.ts:29

File content to upload


mediaType ​

mediaType: "image" | "video" | "file" | "voice"

Defined in: cdn/src/upload.ts:33

Media type: 'image' | 'video' | 'file' | 'voice'


toUserId ​

toUserId: string

Defined in: cdn/src/upload.ts:31

Recipient user ID

Released under the MIT License.