# wx.saveImageToPhotosAlbum(Object object)

Start from base library version 1.2.0. Please remaining backward compatible.

User Authorization is required for scope.writePhotosAlbum before this API is called.

Saves images to the system album.

# Parameters

# Object object

Attribute Type Default Required Description
filePath string Yes The path to the image file. It can be a temporary or permanent file path. The path to a network image is not supported.
success function No The callback function for a successful API call
fail function No Callback function for failed API call
complete function No Callback function used when API call completed (always executed whether call succeeds or fails)

# Sample Code

wx.saveImageToPhotosAlbum({
  success(res) { }
})