MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / openDocumentFile

Method openDocumentFile

src/plugins/sdcard/index.d.ts:203–203  ·  view source on GitHub ↗

* Opens file provider to select file * @param onSuccess Callback function on success returns url of selected file * @param onFail Callback function on error returns error object * @param mimeType MimeType of file to be selected

(
    onSuccess: (url: DocumentFile) => void,
    onFail: (err: any) => void,
    mimeType: string,
  )

Source from the content-addressed store, hash-verified

201 * @param mimeType MimeType of file to be selected
202 */
203 openDocumentFile(
204 onSuccess: (url: DocumentFile) => void,
205 onFail: (err: any) => void,
206 mimeType: string,

Callers 6

FileBrowserIncludeFunction · 0.65
openDocFunction · 0.65
onclickFunction · 0.65
onclickFunction · 0.65
restoreFunction · 0.65
terminalRestoreFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected