Skip to content

Commit b638f6a

Browse files
committed
feat: suppport chooseMedia in web
1 parent 6c85387 commit b638f6a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/packages/uploader/doc.taro.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@ app.post('/upload', upload.single('file'), (req, res) => {
156156
| maxCount | 文件上传数量限制 | `number` \| `string` | `1` |
157157
| fit | 图片填充模式 | `contain` \| `cover` \| `fill` \| `none` \| `scale-down` | `cover` |
158158
| sourceType | [选择文件的来源]("https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.chooseMedia.html") | `Array` | `['album','camera']` |
159-
| camera`仅支持WEAPP` | 仅在 `source-type``camera` 时生效,使用前置或后置摄像头 | `String` | `back` |
159+
| camera | 仅在 `source-type``camera` 时生效,使用前置或后置摄像头 | `String` | `back` |
160160
| sizeType | [是否压缩所选文件]("https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.chooseMedia.html") | `Array` | `['original','compressed']` |
161-
| mediaType`仅支持WEAPP` | [选择文件类型]("https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.chooseMedia.html") | `Array` | `['image', 'video', 'mix']` |
162-
| maxDuration`仅支持WEAPP` | 拍摄视频最长拍摄时间,单位秒。时间范围为 3s 至 60s 之间。不限制相册。 | `number` | `10` |
161+
| mediaType | [选择文件类型]("https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.chooseMedia.html") | `Array` | `['image', 'video', 'mix']` |
162+
| maxDuration | 拍摄视频最长拍摄时间,单位秒。时间范围为 3s 至 60s 之间。不限制相册。 | `number` | `10` |
163163
| headers | 设置上传的请求头部 | `object` | `{}` |
164164
| data | 附加上传的信息 formData | `object` | `{}` |
165165
| uploadIcon | 上传区域<a href="#/zh-CN/icon">图标名称</a> | `ReactNode` | `-` |

0 commit comments

Comments
 (0)