Allow .md file uploads alongside PDF, DOCX, RTF, TXT

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-04 12:44:30 +00:00
parent 10071d7f18
commit 561a4f7bcf
2 changed files with 3 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ from web.paperclip_client import create_project as pc_create_project, get_projec
logger = logging.getLogger(__name__)
UPLOAD_DIR = config.DATA_DIR / "uploads"
ALLOWED_EXTENSIONS = {".pdf", ".docx", ".rtf", ".txt"}
ALLOWED_EXTENSIONS = {".pdf", ".docx", ".rtf", ".txt", ".md"}
MAX_FILE_SIZE = 50 * 1024 * 1024 # 50MB
# In-memory progress tracking

View File

@@ -389,7 +389,7 @@ header nav a:hover, header nav a.active { color: #fff; background: rgba(255,255,
<div class="upload-zone" id="caseDropZone">
<h3>גרור קבצים לכאן או לחץ לבחירה</h3>
<p>PDF, DOCX, RTF, TXT — עד 50MB</p>
<input type="file" id="caseFileInput" multiple accept=".pdf,.docx,.rtf,.txt">
<input type="file" id="caseFileInput" multiple accept=".pdf,.docx,.rtf,.txt,.md">
</div>
<div id="casePendingUploads" style="margin-top: 12px"></div>
<div id="caseTasks" style="margin-top: 12px"></div>
@@ -412,7 +412,7 @@ header nav a:hover, header nav a.active { color: #fff; background: rgba(255,255,
<div style="font-size:3em;color:#ccc;margin-bottom:16px">&#128196;</div>
<h3>גרור קבצים לכאן או לחץ לבחירה</h3>
<p>PDF, DOCX, RTF, TXT — עד 50MB</p>
<input type="file" id="legacyFileInput" multiple accept=".pdf,.docx,.rtf,.txt">
<input type="file" id="legacyFileInput" multiple accept=".pdf,.docx,.rtf,.txt,.md">
</div>
</div></div>
<div class="card" id="legacyPendingCard" style="display:none">