mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 21:17:18 -04:00
Temporarily disable file validation, because it prevents migrating some attachments at wekan/server/migrations.js to ostrio Meteor-Files.
Thanks to xet7 ! Related #4780, related https://github.com/wekan/wekan/pull/4648
This commit is contained in:
parent
7b2cff4c5e
commit
9216a69c05
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,7 @@ if (Meteor.isServer) {
|
|||
export async function isFileValid(fileObj, mimeTypesAllowed, sizeAllowed, externalCommandLine) {
|
||||
let isValid = true;
|
||||
|
||||
/*
|
||||
if (mimeTypesAllowed.length) {
|
||||
const mimeTypeResult = await FileType.fromFile(fileObj.path);
|
||||
|
||||
|
@ -43,6 +44,7 @@ export async function isFileValid(fileObj, mimeTypesAllowed, sizeAllowed, extern
|
|||
if (isValid) {
|
||||
console.debug("Validation of uploaded file successful: file " + fileObj.path);
|
||||
}
|
||||
*/
|
||||
|
||||
return isValid;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue