-
Notifications
You must be signed in to change notification settings - Fork 723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebHost: Support multi-select during check/generate file upload #2138
Conversation
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested it and it works fine for me. The button still says "File" rather than "File(s)" or such.
Updated generate.html to say "File(s)" check.html just says "Upload" so I left it as-is, but I can change to "Upload File(s)" for consistency if you want |
Consistency does sound nice to me. @LegendaryLinux any comments? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me!
…ipelagoMW#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
…ipelagoMW#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
What is this fixing or adding?
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.
Implements this suggestion from #general-suggestions: https://discord.com/channels/731205301247803413/1139359972401102940
There were some suggestions in that thread to make this even better that aren't implemented here, but I agree with " just allowing multi-select in the prompt would go a long, long ways to make it easier" and chose to implement that for now.
How was this tested?
Locally by running WebHost.py. Validated that single-YAML and single-zip uploads still work as expected, then also tried multiple YAMLs. For fun I also tried multiple zips, then a zip+yaml upload and those worked too. I don't think multiple zips or zip+yamls is a particularly common use case but I see no reason to block it either.
If this makes graphical changes, please attach screenshots.