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:
@@ -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
|
||||
|
||||
@@ -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">📄</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">
|
||||
|
||||
Reference in New Issue
Block a user