WebHost: Support multi-select during check/generate file upload (#2138)

* Support multi-select during check/generate file upload

This will allow the user to select multiple YAML files via Shift-Click
or Control-Click in their browser when generating a game via the site
instead of having to zip them locally first.

* Update generate.html: File -> File(s)

* Change check.html button text to "Upload File(s)" to match generate.html
This commit is contained in:
Remy Jette
2023-09-11 13:57:14 -07:00
committed by GitHub
parent 3d9837678c
commit 57c13ff273
4 changed files with 31 additions and 28 deletions

View File

@@ -203,10 +203,10 @@ Warning: playthrough can take a significant amount of time for larger multiworld
</div>
</div>
<div id="generate-form-button-row">
<input id="file-input" type="file" name="file">
<input id="file-input" type="file" name="file" multiple>
</div>
</form>
<button id="generate-game-button">Upload File</button>
<button id="generate-game-button">Upload File(s)</button>
</div>
</div>
</div>