---
title: "文件上传"
method: POST
path: "/share/v1/common/file/upload"
tags: ["ShareFile"]
---

# 文件上传

`POST /share/v1/common/file/upload`

前台用户上传文件,目前只支持图片文件上传

## Headers

- `X-KB-ID` string, required

## Response `200`

OK

- object
  - `data` V1FileUploadResp
    - `key` string
  - `message` string
  - `success` boolean

## Changes

- **2025-10-22** `fbd0a6dc1920` — 1 info
  - endpoint added
- **2025-10-20** `381889362c45` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/chaitin/apis/panda-wiki-api/changes/share/v1/common/file/upload/post.md)

---

[API](https://skmtc.dev/chaitin/apis/panda-wiki-api.md) · [All operations](https://skmtc.dev/chaitin/apis/panda-wiki-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/chaitin/panda-wiki-api/revisions/c088839a56db/schema)
