From ae26ecf34ad66e302b376e780f99a06417c47290 Mon Sep 17 00:00:00 2001 From: Jake Lyell Date: Thu, 1 Jan 2026 21:32:33 +1100 Subject: [PATCH] Re-add some lost comments --- src/network/html/FilesPage.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/network/html/FilesPage.html b/src/network/html/FilesPage.html index 2122ebb1..08c0a0be 100644 --- a/src/network/html/FilesPage.html +++ b/src/network/html/FilesPage.html @@ -869,6 +869,8 @@ function uploadFile() { formData.append('file', file); const xhr = new XMLHttpRequest(); + // Include path as query parameter since multipart form data doesn't make + // form fields available until after file upload completes xhr.open('POST', '/upload?path=' + encodeURIComponent(currentPath), true); progressFill.style.width = '0%';