MCPcopy Index your code
hub / github.com/OpenSignLabs/OpenSign / getFileAsArrayBuffer

Function getFileAsArrayBuffer

apps/OpenSign/src/constant/Utils.js:4579–4586  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

4577 * or rejects with an error if the read fails.
4578 */
4579export function getFileAsArrayBuffer(file) {
4580 return new Promise((resolve, reject) => {
4581 const reader = new FileReader();
4582 reader.onload = (e) => resolve(e.target.result);
4583 reader.onerror = (e) => reject(e.target.error);
4584 reader.readAsArrayBuffer(file);
4585 });
4586}
4587
4588export const sendEmailToSigners = async (
4589 pdfDetails,

Callers 5

handleFileUploadFunction · 0.90
handleFileUploadFunction · 0.90
handleFileUploadFunction · 0.90
FormsFunction · 0.90
handlePasswordSubmitFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected