1e41f4b71Sopenharmony_ci# File Subsystem Changelog
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci## cl.file.1 Change of picker PhotoViewPicker.save() Compatibility
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ciChanged the [PhotoViewPicker.save()](../../../application-dev/reference/apis/js-apis-file-picker.md#save) interface compatibility.
6e41f4b71Sopenharmony_ci
7e41f4b71Sopenharmony_ci**Change Impact**
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ciFor applications developed based on earlier versions, **PhotoViewPicker.save()** saves files only to the file manager directory, and these files are invisible in **Gallery**. To save a file to **Gallery**, create a media asset using a security component. For details, see [Creating a Media Asset Using a Security Component](../../../application-dev/file-management/photoAccessHelper-resource-guidelines.md#creating-a-media-asset-using-a-security-component).
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ci**Key API/Component Changes**
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci| Module                   | Method/Attribute/Enum/Constant                                         | Change Type|
14e41f4b71Sopenharmony_ci| ------------------------- | ------------------------------------------------------------ | -------- |
15e41f4b71Sopenharmony_ci| picker   |   **function** PhotoViewPicker.save(option?: PhotoSaveOptions) : Promise<Array<string>> | Interface compatibility    |
16e41f4b71Sopenharmony_ci| picker   |   **function** PhotoViewPicker.save(option: PhotoSaveOptions, callback: AsyncCallback<Array<string>>) : void | Interface compatibility    |
17e41f4b71Sopenharmony_ci| picker   |   **function** PhotoViewPicker.save(callback: AsyncCallback<Array<string>>) : void | Interface compatibility    |
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci**Adaptation Guide**
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ci**PhotoViewPicker.save()** starts **FilePicker** and saves files to a directory in the system file manager.
22e41f4b71Sopenharmony_ciFrom OpenHarmony_4.0.11.2, **FilePicker** cannot access assets in the media library. As a result, the files in the file manager directory cannot be viewed in **Gallery**. To enable the images or videos to be viewed in **Gallery**, use [**\<SaveButton>**](../../../application-dev/reference/arkui-ts/ts-security-components-savebutton.md) to save images or videos.
23e41f4b71Sopenharmony_ci
24e41f4b71Sopenharmony_ci**Example**
25e41f4b71Sopenharmony_ci
26e41f4b71Sopenharmony_ciSee [Creating a Media Asset Using a Security Component](../../../application-dev/file-management/photoAccessHelper-resource-guidelines.md#creating-a-media-asset-using-a-security-component).
27e41f4b71Sopenharmony_ci
28e41f4b71Sopenharmony_ci<!--no_check-->