mirror of
https://github.com/wekan/wekan.git
synced 2025-06-28 01:15:20 -04:00
Disable file validation temporarily, because it causes data loss of some attachments when upgrading.
Thanks to xet7 ! Related https://github.com/wekan/wekan/issues/4891
This commit is contained in:
parent
1db4161538
commit
e7122a9b36
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,7 @@ if (Meteor.isServer) {
|
||||||
export async function isFileValid(fileObj, mimeTypesAllowed, sizeAllowed, externalCommandLine) {
|
export async function isFileValid(fileObj, mimeTypesAllowed, sizeAllowed, externalCommandLine) {
|
||||||
let isValid = true;
|
let isValid = true;
|
||||||
|
|
||||||
|
/*
|
||||||
if (Meteor.settings.public.ostrioFilesMigrationInProgress !== "true") {
|
if (Meteor.settings.public.ostrioFilesMigrationInProgress !== "true") {
|
||||||
if (mimeTypesAllowed.length) {
|
if (mimeTypesAllowed.length) {
|
||||||
const mimeTypeResult = await FileType.fromFile(fileObj.path);
|
const mimeTypeResult = await FileType.fromFile(fileObj.path);
|
||||||
|
@ -45,6 +46,7 @@ export async function isFileValid(fileObj, mimeTypesAllowed, sizeAllowed, extern
|
||||||
console.debug("Validation of uploaded file successful: file " + fileObj.path);
|
console.debug("Validation of uploaded file successful: file " + fileObj.path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
return isValid;
|
return isValid;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue