Skip to content

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 App
const importDocument = yield* AWS.QApps.ImportDocument(app);
// runtime
const imported = yield* importDocument({
cardId,
fileContentsBase64,
fileName: "notes.txt",
scope: "SESSION",
sessionId,
});
console.log(imported.fileId);