目录

Media File Access

You can call has.chooseImage to access media library resources of selected files.

has.chooseImage({
  count: 1, // The default value is 9.
  sizeType: ['original', 'compressed'], // Specify whether the image is an original or a compressed one. By default, both are available.
  sourceType: ['album', 'camera'], // Specify whether the image is chosen from the album or taken using a camera. By default, both are available.
  success: function (res) {
    const tempFilePaths = res.tempFilePaths;
    const tempFiles = res.tempFiles;
  }
});