MCPcopy Create free account
hub / github.com/OpenSIST/OpenSIST.github.io / getFile

Function getFile

src/Data/FileData.js:10–17  ·  view source on GitHub ↗
(fileId)

Source from the content-addressed store, hash-verified

8 const pdfBlob = blob.type === "application/pdf" ? blob : new Blob([blob], {type: "application/pdf"});
9 return URL.createObjectURL(pdfBlob);
10}
11
12export async function addModifyFile(requestBody) {
13 await apiRequest(ADD_MODIFY_FILE, {body: requestBody});
14 await removeCacheValue("applicants");
15}
16
17export async function removeFile(fileId) {
18 await apiRequest(REMOVE_FILE, {body: {PostID: fileId}});
19 await removeCacheValue("applicants");
20}

Callers 1

getFileObjectFunction · 0.85

Calls 1

getFilesFunction · 0.85

Tested by

no test coverage detected