A platform for community discussion. Free, open, simple.
FIX: Emoji uploader not using data.name on uppy upload (#14958)
Martin Brennanf61783a21814
diff --git a/app/assets/javascripts/discourse/app/mixins/uppy-upload.js b/app/assets/javascripts/discourse/app/mixins/uppy-upload.jsindex 3fe51eae6fe..cabcfc2ae42 100644--- a/app/assets/javascripts/discourse/app/mixins/uppy-upload.js+++ b/app/assets/javascripts/discourse/app/mixins/uppy-upload.js@@ -119,6 +119,13 @@ export default Mixin.create(UppyS3Multipart, {this._reset();return false;}++ // for a single file, we want to override file meta with the+ // data property (which may be computed), to override any keys+ // specified by this.data (such as name)+ if (fileCount === 1) {+ deepMerge(Object.values(files)[0].meta, this.data);+ }},});