diff options
| author | salmonik <salmonik@tuta.io> | 2026-07-29 02:26:49 +0200 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-07-29 02:26:49 +0200 |
| commit | 298d0d0805349e1e914953461c4beb8fead5adb1 (patch) | |
| tree | 9a1fd66f7c5b2b22643573a4c040b01ae24aae21 | |
| parent | Security audit fixes: patch 16 vulnerabilities across 7 source files (diff) | |
| download | minecraft-ui-298d0d0805349e1e914953461c4beb8fead5adb1.tar.gz minecraft-ui-298d0d0805349e1e914953461c4beb8fead5adb1.zip | |
Mod picker: allow selecting multiple .jar files for upload
Add 'multiple' attribute to the file input so users can pick several
.jar files at once from their filesystem without needing to zip them.
The backend already processes each multipart field independently.
| -rw-r--r-- | templates/mods/list.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/mods/list.html b/templates/mods/list.html index b8aff1f..4e75039 100644 --- a/templates/mods/list.html +++ b/templates/mods/list.html | |||
| @@ -11,11 +11,11 @@ | |||
| 11 | 11 | ||
| 12 | <div class="card" style="margin-bottom:1rem"> | 12 | <div class="card" style="margin-bottom:1rem"> |
| 13 | <form action="/instances/{{ instance_id }}/mods" method="post" enctype="multipart/form-data" class="form-row"> | 13 | <form action="/instances/{{ instance_id }}/mods" method="post" enctype="multipart/form-data" class="form-row"> |
| 14 | <input type="file" name="mod_file" accept=".jar,.zip" required style="font-size:0.85rem"> | 14 | <input type="file" name="mod_files" accept=".jar,.zip" multiple required style="font-size:0.85rem"> |
| 15 | <button type="submit" class="btn-ok">Upload & Validate</button> | 15 | <button type="submit" class="btn-ok">Upload & Validate</button> |
| 16 | </form> | 16 | </form> |
| 17 | <p style="margin-top:0.5rem;font-size:0.8rem;color:var(--fg-muted)"> | 17 | <p style="margin-top:0.5rem;font-size:0.8rem;color:var(--fg-muted)"> |
| 18 | Upload <code>.jar</code> files directly or a <code>.zip</code> containing multiple <code>.jar</code> files. | 18 | Select one or more <code>.jar</code> files, or a <code>.zip</code> containing multiple <code>.jar</code>s. |
| 19 | Mods containing <strong>only</strong> client-side classes will be rejected. | 19 | Mods containing <strong>only</strong> client-side classes will be rejected. |
| 20 | </p> | 20 | </p> |
| 21 | </div> | 21 | </div> |
