This commit is contained in:
overcuriousity
2025-08-09 22:48:29 +02:00
parent b8311e152d
commit b1c31379b2
5 changed files with 5 additions and 25 deletions

View File

@@ -309,7 +309,6 @@ class KnowledgebaseForm {
private handleFiles(files: File[]) {
files.forEach(file => {
// Client-side validation before upload
const validation = this.validateFileBeforeUpload(file);
if (!validation.valid) {
console.log('[UPLOAD]Cannot upload ', file.name, ' Error: ', validation.error);
@@ -340,7 +339,6 @@ class KnowledgebaseForm {
};
}
// Check file type
const allowedExtensions = [
'.pdf', '.doc', '.docx', '.txt', '.md', '.markdown', '.csv', '.json',
'.xml', '.html', '.rtf', '.yaml', '.yml', '.zip', '.tar', '.gz',