Fix mv-sync path; pre-fill PDF display name from filename on upload
- Fix MV_SYNC path: ../tools resolved to /workspace/tools, should be ./tools relative to server.mjs entry point - Pre-populate display name input when file is selected (strips .pdf extension), only if the field is currently empty so manual edits are not overwritten Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -566,7 +566,7 @@
|
||||
<div class="form-section-label">Upload new PDF</div>
|
||||
<div class="fp-upload-row">
|
||||
<input type="file" id="fp-file-input" accept=".pdf,application/pdf">
|
||||
<input type="text" id="fp-upload-name" placeholder="Display name (optional)" autocomplete="off">
|
||||
<input type="text" id="fp-upload-name" placeholder="Display name" autocomplete="off">
|
||||
<button type="button" class="btn btn-primary btn-sm" id="fp-upload-btn">Upload</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user