Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose: Fix re-upload of files when upload fails.
roanster007cf4b46d6f780
diff --git a/web/src/upload.js b/web/src/upload.jsindex 419c2709c37..863f8210bc9 100644--- a/web/src/upload.js+++ b/web/src/upload.js@@ -411,6 +411,10 @@ export function setup_upload(config) {show_error_message(config, message, file.id);compose_ui.replace_syntax(get_translated_status(file), "", get_item("textarea", config));compose_ui.autosize_textarea(get_item("textarea", config));++ // The files with failed upload should be removed since uppy doesn't allow files in the store+ // to be re-uploaded again.+ uppy.removeFile(file.id);});uppy.on("restriction-failed", (file) => {