fetchDeviceFileSign(bizType: string, fileName: string, contentType: string)
Requires:
@tuya-miniapp/cloud-api≥1.0.5
Description
Get temporary storage upload signature
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
bizType | string | Yes | Business type |
fileName | string | Yes | File name to be stored |
contentType | string | Yes | File category |
Return Value
Type: Promise<FileSign>
FileSign: action (temporary storage signature), token (key for querying the storage result)
Referenced Types
type
FileSignTemporary upload signature returned by `fetchDeviceFileSign`.| Property | Type | Description |
|---|---|---|
action | string | Temporary storage signature (used with the upload SDK) |
token | string | Key for querying the storage result, used for `fetchDeviceFileUploadState` |