Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: upload report pdf size to 200Mb #715

Merged
merged 4 commits into from
Jul 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading