From b048f51d462ca2636cbe9b18e260f87a986e8512 Mon Sep 17 00:00:00 2001 From: nmemmert <67961292+nmemmert@users.noreply.github.com> Date: Wed, 29 Jul 2026 17:15:23 -0400 Subject: [PATCH] Replace server-folder docx import with direct file picker The old import scanned a hardcoded Seafile CloudStorage path that only worked on one specific machine. Replaced with a standard browser picker that reads the .docx as base64 and uploads it directly, so the feature works everywhere. Server endpoint now accepts either a base64 payload or the legacy path. Also fixed a crash where resetImportSection() still referenced the removed select element, which was breaking the item editor for all item types. Co-Authored-By: Claude Sonnet 4.6 --- public/admin.html | 9 +++++---- public/admin.js | 42 +++++++++++++++--------------------------- server.js | 22 +++++++++++++--------- 3 files changed, 33 insertions(+), 40 deletions(-) diff --git a/public/admin.html b/public/admin.html index 1398459..f99c084 100644 --- a/public/admin.html +++ b/public/admin.html @@ -169,12 +169,13 @@

- +