---
title: "上传文件"
method: POST
path: "/file/upload"
tags: ["前台-文件"]
---

# 上传文件

`POST /file/upload`

## Response `200`

请求结果

- DefineFileApiUploadRes
  - `name` string — 文件名称
  - `url` string — 访问URL，可能只是URI

## Changes

- **2020-11-23** `5360f0b5286c` — 2 info
  - api tag `前台-文件` added
  - api tag `文件` removed
- **2020-11-10** `22caca9d0cdc` — 1 info
  - endpoint added
- **2020-10-30** `71161e2ef517` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/gogf/apis/goframe-api/changes/file/upload/post.md)

---

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