Skip to content

Commit

Permalink
docs: update faq (#34984)
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Apr 12, 2022
1 parent f11bde4 commit 6223342
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion components/upload/index.en-US.md
Expand Up @@ -117,4 +117,8 @@ For compatible case, we return File object when `beforeUpload` return `false`. I

### Why sometime Chrome can not upload?

Chrome update will also break native upload. Please restart chrome to finish the upload work.
Chrome update will also break native upload. Please restart chrome to finish the upload work. Ref:

- [#32672](https://github.com/ant-design/ant-design/issues/32672)
- [#32913](https://github.com/ant-design/ant-design/issues/32913)
- [#33988](https://github.com/ant-design/ant-design/issues/33988)
8 changes: 6 additions & 2 deletions components/upload/index.zh-CN.md
Expand Up @@ -115,6 +115,10 @@ cover: https://gw.alipayobjects.com/zos/alicdn/QaeBt_ZMg/Upload.svg

历史原因,在 `beforeUpload` 返回 `false` 时,会返回 File 对象。在下个大版本我们会统一返回 `{ originFileObj: File }` 对象。当前版本已经兼容所有场景下 `info.file.originFileObj` 获取原 File 写法。你可以提前切换。

### 为何有时 Chrome 无法上传了
### 为何有时 Chrome 点击 Upload 无法弹出文件选择框

与 antd 无关,原生上传也会失败。请重启 Chrome 游览器,让游览器完成升级工作。
与 antd 无关,原生上传也会失败。请重启 Chrome 浏览器,让其完成升级工作。相关 issue:

- [#32672](https://github.com/ant-design/ant-design/issues/32672)
- [#32913](https://github.com/ant-design/ant-design/issues/32913)
- [#33988](https://github.com/ant-design/ant-design/issues/33988)

0 comments on commit 6223342

Please sign in to comment.