Skip to content

Commit a34d1bf

Browse files
committed
fix: the missing upload file key
1 parent 230e47e commit a34d1bf

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<h1 align="center">
2-
<a href="http://doc.cms.7yue.pro/">
3-
<img src="http://doc.cms.7yue.pro/left-logo.png" width="250"/></a>
2+
<a href="http://doc.cms.talelin.pro/">
3+
<img src="http://doc.cms.talelin.pro/left-logo.png" width="250"/></a>
44
<br>
55
Lin-CMS-Koa
66
</h1>
77

8-
<h4 align="center">一个简单易用的CMS后端项目 | <a href="http://doc.cms.7yue.pro/" target="_blank">Lin-CMS-Koa</a></h4>
8+
<h4 align="center">一个简单易用的CMS后端项目 | <a href="http://doc.cms.talelin.pro/" target="_blank">Lin-CMS-Koa</a></h4>
99

1010
<p align="center">
1111
<a href="http://flask.pocoo.org/docs/1.0/" rel="nofollow">
1212
<img src="https://img.shields.io/badge/koa-2.7.0-green.svg" alt="flask version" data-canonical-src="https://img.shields.io/badge/koa-2.7.0-green.svg" style="max-width:100%;"></a>
1313
<a href="https://pypi.org/project/Lin-CMS/" rel="nofollow"><img src="https://img.shields.io/badge/lin--mizar-0.3.1-green.svg" alt="lin-cms version" data-canonical-src="https://img.shields.io/badge/lin--cms--test-0.0.1--alpha8-red.svg" style="max-width:100%;"></a>
14-
<a href="http://doc.cms.7yue.pro/" rel="nofollow"><img src="https://img.shields.io/badge/license-MIT-lightgrey.svg" alt="LISENCE" data-canonical-src="https://img.shields.io/badge/license-MIT-lightgrey.svg" style="max-width:100%;"></a>
14+
<a href="http://doc.cms.talelin.pro/" rel="nofollow"><img src="https://img.shields.io/badge/license-MIT-lightgrey.svg" alt="LISENCE" data-canonical-src="https://img.shields.io/badge/license-MIT-lightgrey.svg" style="max-width:100%;"></a>
1515
</p>
1616

1717
<blockquote align="center">
@@ -20,7 +20,7 @@
2020
</blockquote>
2121

2222
<p align="center">
23-
<a href="#简介">简介</a>&nbsp;|&nbsp;<a href="#快速开始">快速开始</a>&nbsp;|&nbsp;<a href="#下个版本开发计划">下个版本开发计划</a>
23+
<a href="#简介">简介</a>&nbsp;|&nbsp;<a href="#版本日志">版本日志</a>&nbsp;|&nbsp;<a href="#Lin CMS 的特点">Lin CMS 的特点</a>
2424
</p>
2525

2626
## 简介
@@ -35,18 +35,22 @@ Lin-CMS 是林间有风团队经过大量项目实践所提炼出的一套**内
3535

3636
### 当前最新版本
3737

38-
lin-mizar(核心库) :0.3.4
39-
4038
lin-cms-koa(当前示例工程):0.3.5
4139

40+
lin-mizar(核心库) :0.3.4
41+
4242
### 文档地址
4343

44-
[http://doc.cms.7yue.pro/](http://doc.cms.7yue.pro/)
44+
[http://doc.cms.talelin.pro/](http://doc.cms.talelin.pro/)
4545

4646
### 线上 demo
4747

4848
[http://face.cms.7yue.pro/](http://face.cms.7yue.pro/)
4949

50+
### 免费入门视频教程
51+
52+
[https://www.imooc.com/learn/1247](https://www.imooc.com/learn/1247)
53+
5054
### QQ 交流群
5155

5256
QQ 群号:643205479
@@ -66,6 +70,7 @@ QQ 群号:643205479
6670
### 0.3.5
6771

6872
1. `U` 更新核心库 lin-mizar 到 0.3.4 版本
73+
2. `F` 修复文件上传丢失 key 字段
6974

7075
### 0.3.4
7176

app/extension/file/local-uploader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class LocalUploader extends Uploader {
2424
if (exist) {
2525
arr.push({
2626
id: exist.id,
27-
key: file.fieldname,
27+
key: file.fieldName,
2828
path: exist.path,
2929
url: `${siteDomain}/assets/${exist.path}`,
3030
type: exist.type,
@@ -52,7 +52,7 @@ class LocalUploader extends Uploader {
5252
);
5353
arr.push({
5454
id: saved.id,
55-
key: file.fieldname,
55+
key: file.fieldName,
5656
path: saved.path,
5757
url: `${siteDomain}/assets/${saved.path}`,
5858
type: saved.type,

0 commit comments

Comments
 (0)