From 6854a8398944ac748d82da256ba49198cf730e1a Mon Sep 17 00:00:00 2001 From: afc163 Date: Sun, 20 Sep 2015 13:56:14 +0800 Subject: [PATCH] get filename --- components/upload/index.jsx | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/upload/index.jsx b/components/upload/index.jsx index bb7d259a9a..52edc5e121 100644 --- a/components/upload/index.jsx +++ b/components/upload/index.jsx @@ -14,7 +14,7 @@ function fileToObject(file) { return { lastModified: file.lastModified, lastModifiedDate: file.lastModifiedDate, - name: file.name, + name: file.filename || file.name, size: file.size, type: file.type, uid: file.uid, diff --git a/package.json b/package.json index 8521a8e022..060355100e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "antd", - "version": "0.9.1-beta9", + "version": "0.9.1-beta10", "stableVersion": "0.9.0", "title": "Ant Design", "description": "一个 UI 设计语言",