You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en-US/component/use-upload.md
+1-35Lines changed: 1 addition & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,43 +77,9 @@ abort()
77
77
| compressed | Whether to compress video | boolean | true | - |
78
78
| maxDuration | Maximum video duration (seconds) | number | 60 | - |
79
79
| camera | Camera direction | 'back' \| 'front' | 'back' | - |
80
-
| extension | Filter by file extension (H5 supports all types, WeChat Mini Program supports filtering when all and file, other platforms do not support) | string[]| - |
80
+
| extension | Filter by file extension (H5 supports all types; WeChat Mini Program supports filtering when accept is 'all' or 'file'; other platforms do not support) | string[]| -| - |
81
81
82
-
## File Selection Quantity Limits
83
-
84
-
Different platforms have different limits on file selection quantity, which are determined by the uni-app platform APIs themselves:
85
-
86
-
### WeChat Platform
87
-
88
-
| Selection Method | Max Count | Description | Use Case |
|`chooseImage`| 9 | Maximum selection count for images | Used when accept is `image`|
98
-
|`chooseVideo`| 1 | Does not support multiple selection, single file only | Used when accept is `video`|
99
-
|`chooseFile`| 100 | Maximum selection count for files | Used when accept is `all`|
100
-
101
-
::: warning H5 Platform Special Note
102
-
The behavior of the count value on the H5 platform is based on the browser's own specifications. Current test results show that it can only limit single/multiple selection, but cannot limit the specific quantity. Moreover, very few mobile browsers actually support multiple selection.
103
-
:::
104
-
105
-
### Other Platforms
106
82
107
-
| Selection Method | Max Count | Description | Use Case |
0 commit comments