Skip to content

Commit

Permalink
修复大文件上传方法取值错误
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajun-ifanr committed Dec 18, 2023
1 parent 0ac95c9 commit c620471
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js-sdk/file/file.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ f.addEventListener('change', function(e) {
```js
my.chooseImage({
success: function(res) {
let MyFile = new wx.BaaS.File()
let MyFile = new my.BaaS.File()
let fileParams = {
filePath: res.apFilePaths[0],
fileType: 'image',
Expand Down Expand Up @@ -267,7 +267,7 @@ file 参数说明:
```javascript
wx.chooseVideo({
success: function (res) {
let File = new app.BaaS.File()
let File = new wx.BaaS.File()
let fileParams = { filePath: res.tempFilePath, fileSize: res.size }
// 方式一,参数为文件分类名
let metaData = {categoryName: 'SDK'}
Expand Down Expand Up @@ -304,7 +304,7 @@ f.addEventListener('change', function(e) {
```javascript
my.chooseVideo({
success: function (res) {
let File = new app.BaaS.File()
let File = new my.BaaS.File()
let fileParams = { filePath: res.tempFilePath, fileSize: res.size }
// 方式一,参数为文件分类名
let metaData = {categoryName: 'SDK'}
Expand Down

0 comments on commit c620471

Please sign in to comment.