Skip to main content
Open file picker to select a file from device storage.

Parameters

Success Callback

Error Codes

  • 16: the user denied the storage permission for the current request.
  • 17: the user previously denied the permission and chose not to be asked again, so no permission dialog can appear. Call my.showAuthGuide to guide the user to grant it.
The file size is limited to 50 MB. Larger files return error 18.

Code Example