fix(control): release upload field name 'file' to match ivctl multer (was 'release')

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Claude
2026-06-15 02:20:16 +10:00
parent 173efc31e5
commit ce0e9b3846

View File

@@ -178,7 +178,7 @@ async function renderReleases(panel) {
if (!fileInput.files?.[0]) return notify(upMsg, 'pick a tarball first', false); if (!fileInput.files?.[0]) return notify(upMsg, 'pick a tarball first', false);
if (!verInput.value.trim()) return notify(upMsg, 'version required', false); if (!verInput.value.trim()) return notify(upMsg, 'version required', false);
const fd = new FormData(); const fd = new FormData();
fd.append('release', fileInput.files[0]); fd.append('file', fileInput.files[0]);
fd.append('version', verInput.value.trim()); fd.append('version', verInput.value.trim());
fd.append('notes', notesInput.value); fd.append('notes', notesInput.value);
notify(upMsg, 'uploading…', true); notify(upMsg, 'uploading…', true);