FEATURE: Use uppy for tags uploader (#14821)

No other caveats or fixes.
This commit is contained in:
Martin Brennan 2021-11-08 08:18:09 +10:00 committed by GitHub
parent fe8087e523
commit 18dc2c5040
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 };