mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 01:33:45 +08:00
2201f8f7dc
When submitting files through the form template upload field, we were having an issue where, although a validation error message was being presented to the user, the upload was still coming through, because `PickFilesButton`'s validation happens **after** the Uppy mixin finished the upload and hit `uploadDone`. This PR adds a new overridable method to the Uppy mixin and overrides it with the custom validation, which now happens before the file is sent. Additionally, we're now also using `uploadingOrProcessing` as the source of truth to show the upload/uploading label, which seems more reliable. |
||
---|---|---|
.. | ||
category_templates_spec.rb | ||
default_to_subcategory_spec.rb | ||
dont_feed_the_trolls_popup_spec.rb | ||
post_validation_spec.rb | ||
preview_spec.rb | ||
review_media_unless_trust_level_spec.rb | ||
template_validation_spec.rb |