From 18dc2c504098367e570655a753f79b8b81a311b4 Mon Sep 17 00:00:00 2001 From: Martin Brennan Date: Mon, 8 Nov 2021 08:18:09 +1000 Subject: [PATCH] FEATURE: Use uppy for tags uploader (#14821) No other caveats or fixes. --- .../javascripts/admin/addon/components/tags-uploader.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/admin/addon/components/tags-uploader.js b/app/assets/javascripts/admin/addon/components/tags-uploader.js index 1dc3bfc4673..dcd57a45fd8 100644 --- a/app/assets/javascripts/admin/addon/components/tags-uploader.js +++ b/app/assets/javascripts/admin/addon/components/tags-uploader.js @@ -1,14 +1,15 @@ import Component from "@ember/component"; import I18n from "I18n"; -import UploadMixin from "discourse/mixins/upload"; +import UppyUploadMixin from "discourse/mixins/uppy-upload"; import { alias } from "@ember/object/computed"; import bootbox from "bootbox"; -export default Component.extend(UploadMixin, { +export default Component.extend(UppyUploadMixin, { type: "csv", uploadUrl: "/tags/upload", addDisabled: alias("uploading"), elementId: "tag-uploader", + preventDirectS3Uploads: true, validateUploadedFilesOptions() { return { csvOnly: true };