get_upload_config
Retrieve image upload configuration details such as supported file types and size limits before uploading to ensure compliance with platform requirements.
Instructions
获取图片上传配置,包括支持的文件类型、大小限制等。上传图片前先调用此接口了解约束。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/client.ts:151-156 (handler)The `getUploadConfig` method in `GetNoteClient` performs a GET request to `/resource/image/config` to retrieve upload configurations.
async getUploadConfig() { return this.request<GetUploadConfigResp>( "GET", "/resource/image/config" ); } - src/client.ts:465-469 (schema)The `GetUploadConfigResp` interface defines the expected structure of the response returned by `getUploadConfig`.
export interface GetUploadConfigResp { support_extensions: string[]; max_size_bytes: number; max_count: number; }