ImportDocument
Source:
src/AWS/QApps/ImportDocument.ts
Runtime binding for qapps:ImportDocument.
Uploads a base64-encoded file into a card of the bound Q App, at app or session scope. Provide the implementation with
Effect.provide(AWS.QApps.ImportDocumentHttp).
// init — bind the operation to the Q Appconst importDocument = yield* AWS.QApps.ImportDocument(app);
// runtimeconst imported = yield* importDocument({ cardId, fileContentsBase64, fileName: "notes.txt", scope: "SESSION", sessionId,});console.log(imported.fileId);