• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Bundle Manager Subsystem Changelog
2
3## cl.bundlemanager.1 Optimized File Quantity Verification in Sharing Scenarios
4
5**Access Level**
6
7Public API
8
9**Reason for Change**
10
11Verification on the number of files is optimized in sharing scenarios.
12
13**Change Impact**
14
15This change is a non-compatible change.
16
17Example:<br>
18An application is configured as follows for receiving files in sharing scenarios:
19
20```
21{
22    "utd": "general.image",
23    "maxFileSupported": 3
24}
25````
26Both JPEG and PNG images are of the general.image type. Assume that two JPEG images and two PNG images are to be shared.
27
28Before change:
29
30Neither the number of JPEG images nor the number of PNG images exceeds the value of **maxFileSupported**. Therefore, the application is displayed on the sharing panel.
31
32After change:
33
34The total number of files of the specified type is verified. Since the total number of images is 4, exceeding the value of **maxFileSupported**, the application is not displayed on the sharing panel.
35
36**Start API Level**
37
3811
39
40**Change Since**
41
42OpenHarmony 5.0.0.53
43
44**Key API/Component Changes**
45
46**maxFileSupported** in [module.json5](https://gitee.com/openharmony/docs/blob/master/en/application-dev/quick-start/module-configuration-file.md#skills).
47
48**Adaptation Guide**
49
50The **maxFileSupported** field specifies the maximum number of files of a specified type that can be received or opened at a time. When an application is on the receiving end of sharing various types of files, it must consider the maximum number of files for each type that it can accept.
51