Type alias WAMediaUploadFunction
WAMediaUploadFunction: ((readStream, opts) => Promise<{
directPath: string;
mediaUrl: string;
}>)
Type declaration
- (readStream, opts): Promise<{
directPath: string;
mediaUrl: string;
}> Parameters
readStream: Readable
opts: {
fileEncSha256B64: string;
mediaType: MediaType;
timeoutMs?: number;
}
fileEncSha256B64: string
Optional
timeoutMs?: number
Returns Promise<{
directPath: string;
mediaUrl: string;
}>