Skip to content

Commit

Permalink
fix: fileName
Browse files Browse the repository at this point in the history
  • Loading branch information
jason.yf committed Jul 23, 2020
1 parent 87ec84e commit 34099cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/file/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "universal-file",
"author": "rax",
"version": "1.1.0",
"version": "1.1.1",
"description": "",
"main": "lib/index.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/file/src/miniapp/wechat/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import formatOriginal from '../formatOriginal';

declare const wx: any;
export default options => {
options = formatOriginal(options, {'fileName': 'name'});
options = formatOriginal(options, {'name': 'fileName'});
return promisifyFn(wx.uploadFile, options, null, null);
};

0 comments on commit 34099cb

Please sign in to comment.