added in options for uploadstream for rep pdfs

This commit is contained in:
2024-11-14 14:33:19 +00:00
parent 379f238552
commit 61e645c963
11 changed files with 66 additions and 41 deletions
+19 -2
View File
@@ -385,10 +385,18 @@ export const createAppealPDFBlob = async (
//console.log(content);
const blobName = caseID + "/files/" + pdfFileName + ".pdf";
const uploadOptions = {
blockSize: 4 * 1024 * 1024, // 4 MiB max block size
concurrency: 2, // maximum number of parallel transfer workers
maxSingleShotSize: 8 * 1024 * 1024, // 8 MiB initial transfer size
};
console.log("blobName:", blobName);
const blockBlobClient = containerClient.getBlockBlobClient(blobName);
const uploadBlobResponse = await blockBlobClient.uploadStream(content);
const uploadBlobResponse = await blockBlobClient.uploadStream(
content,
uploadOptions
);
console.log(uploadBlobResponse);
@@ -426,10 +434,19 @@ export const createRepPDFBlob = async (
//console.log(content);
const blobName = caseID + "/" + repName + "/files/" + repName + ".pdf";
const uploadOptions = {
blockSize: 4 * 1024 * 1024, // 4 MiB max block size
concurrency: 2, // maximum number of parallel transfer workers
maxSingleShotSize: 8 * 1024 * 1024, // 8 MiB initial transfer size
};
console.log("blobName:", blobName);
const blockBlobClient = containerClient.getBlockBlobClient(blobName);
const uploadBlobResponse = await blockBlobClient.uploadStream(content);
const uploadBlobResponse = await blockBlobClient.uploadStream(
content,
uploadOptions
);
let whichLocation =
repName.indexOf("_IP_") > 0