Skip to content

Commit

Permalink
在 onChange 属性返回的 file 对象中添加 nativeFile 属性
Browse files Browse the repository at this point in the history
  • Loading branch information
akuma committed May 3, 2016
1 parent 2c21a66 commit 4f76d6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/form/uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export default class Uploader extends React.Component {
let base64 = canvas.toDataURL('image/png');

cb({
nativeFile: file,
lastModified: file.lastModified,
lastModifiedDate: file.lastModifiedDate,
name: file.name,
Expand Down

0 comments on commit 4f76d6e

Please sign in to comment.