Skip to content

Commit

Permalink
fix: upload report pdf size to 200Mb (#715)
Browse files Browse the repository at this point in the history
* fix: add .txt file and adjust max size to 200mb

* fix/uploadVCF: change logic of uploading file

* fix: upload pdf report on lab
  • Loading branch information
alvin371 committed Jul 17, 2023
1 parent 990674d commit 97112b5
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
]
}
},
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 97112b5

Please sign in to comment.