mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 06:40:23 +08:00

It used to fail without displaying an error message if no upload extensions were authorized. This also disables the button in the first place to avoid displaying an error to the user (the error will be displayed only when drag and dropping a file).