From 97112b563e125316732bb882bce0456bb7699a0a Mon Sep 17 00:00:00 2001 From: Alvin Dimas Satria <56182633+alvin371@users.noreply.github.com> Date: Mon, 17 Jul 2023 10:15:36 +0700 Subject: [PATCH] fix: upload report pdf size to 200Mb (#715) * fix: add .txt file and adjust max size to 200mb * fix/uploadVCF: change logic of uploading file * fix: upload pdf report on lab --- .../Lab/OrderHistory/ProcessOrder/ProcessSpecimen/index.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/views/Dashboard/Lab/OrderHistory/ProcessOrder/ProcessSpecimen/index.vue b/src/views/Dashboard/Lab/OrderHistory/ProcessOrder/ProcessSpecimen/index.vue index 05f73537..ac3a4e63 100644 --- a/src/views/Dashboard/Lab/OrderHistory/ProcessOrder/ProcessSpecimen/index.vue +++ b/src/views/Dashboard/Lab/OrderHistory/ProcessOrder/ProcessSpecimen/index.vue @@ -281,13 +281,12 @@ export default { return [ value => !value || (value.type == "text/x-vcard" || value.type == "text/vcard" || value.type == "text/directory" || value.type == "text/plain") || "The files uploaded are not in the supported file formats (VCF or TXT)", value => !value || value.size < 211000000 || "The total file size uploaded exceeds the maximum file size allowed (200MB)" - ]; }, reportFileRules() { return [ value => !value || value.type == "application/pdf" || "The files uploaded are not in the supported file formats (PDF)", - value => !value || value.size < 2000000 || "The total file size uploaded exceeds the maximum file size allowed (2MB)" + value => !value || value.size < 211000000 || "The total file size uploaded exceeds the maximum file size allowed (200MB)" ] } }, @@ -428,7 +427,6 @@ export default { addFileUploadEventListener(fileInputRef, fileType) { this.hasGenomeError = []; this.hasReportError = []; - if (fileType === "genome") { this.genomeFileRules.forEach(rule => { const resultRule = rule.call(this, fileInputRef);