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:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user