# Is it possible to bulk upload tags?

**URL:** <https://meta.discourse.org/t/is-it-possible-to-bulk-upload-tags/50940>\
**Category:** Support\
**Created:** [10월 1, 2016, 4:55오전 UTC](https://meta.discourse.org/t/is-it-possible-to-bulk-upload-tags/50940 "2016-10-01T04:55:40Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ratul\_Bhattacharya](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ratul_bhattacharya/32/62281_2.png) [@Ratul\_Bhattacharya](https://meta.discourse.org/u/Ratul_Bhattacharya)\
**Post date:** [10월 1, 2016, 4:55오전 UTC](https://meta.discourse.org/t/is-it-possible-to-bulk-upload-tags/50940/1 "2016-10-01T04:55:40Z")

</div>

Sorry for posting all werid sort of questions but my requirement is also a little weird. I am building a forum using discourse that talks about Indian stock market which has over 3500 stocks. I was recommended that I can use tags to identify each stocks. Now the problem is that if I have to 3500 stocks manually its a really pain, was just wondering if I have the option of bulk upload or something to hack around with? Any help is highly appreciated.

---

<div class="post-metadata">

**Author:** ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)\
**Post date:** [10월 1, 2016, 5:01오전 UTC](https://meta.discourse.org/t/is-it-possible-to-bulk-upload-tags/50940/2 "2016-10-01T05:01:59Z")

</div>

Tags are created dynamically, there should be no need to “pre-upload” them. Once a tag is used on a topic, it will appear in the tag dropdown for other topics, unless restricted via category settings. You can define what trust-level users can create tags, and what trust-level users can use tags via site settings.

---

<div class="post-metadata">

**Author:** ![Ratul\_Bhattacharya](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ratul_bhattacharya/32/62281_2.png) [@Ratul\_Bhattacharya](https://meta.discourse.org/u/Ratul_Bhattacharya)\
**Post date:** [10월 1, 2016, 5:20오전 UTC](https://meta.discourse.org/t/is-it-possible-to-bulk-upload-tags/50940/3 "2016-10-01T05:20:22Z")

</div>

well my needs are different, like I said I as a moderator would like to control the list of tags and pre-populate them when user wants to query about a specific stock.

---

<div class="post-metadata">

**Author:** ![Ratul\_Bhattacharya](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ratul_bhattacharya/32/62281_2.png) [@Ratul\_Bhattacharya](https://meta.discourse.org/u/Ratul_Bhattacharya)\
**Post date:** [10월 1, 2016, 5:22오전 UTC](https://meta.discourse.org/t/is-it-possible-to-bulk-upload-tags/50940/4 "2016-10-01T05:22:16Z")

</div>

Because what worse can happen is people use two different tags to talk about the same stock. which is something I would like to avoid. Please advise @jomaxro

---

<div class="post-metadata">

**Author:** ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)\
**Post date:** [10월 1, 2016, 5:23오전 UTC](https://meta.discourse.org/t/is-it-possible-to-bulk-upload-tags/50940/5 "2016-10-01T05:23:51Z")

</div>

You’ve gone beyond my knowledge, unfortunately 😞. Hopefully someone else can assist - this is a very specific use case you have.

---

<div class="post-metadata">

**Author:** ![Ratul\_Bhattacharya](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ratul_bhattacharya/32/62281_2.png) [@Ratul\_Bhattacharya](https://meta.discourse.org/u/Ratul_Bhattacharya)\
**Post date:** [10월 1, 2016, 5:24오전 UTC](https://meta.discourse.org/t/is-it-possible-to-bulk-upload-tags/50940/6 "2016-10-01T05:24:36Z")

</div>

no problem brother. thanks a lot

---

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [10월 1, 2016, 12:14오후 UTC](https://meta.discourse.org/t/is-it-possible-to-bulk-upload-tags/50940/7 "2016-10-01T12:14:19Z")

</div>

If you want to create a certain tag list, you simply need to create a topic in a staff/admin area (think similar to Site Assets) and tag it with all the tags you want to accept.

Then set `min trust to create tag` to 4 (so no one else can create them unless you promote them to TL 4).

And since you are talking 3500 tags, I’d suggest multiple topics in a staff/admin category. So you can split them up in some logical way.

---

<div class="post-metadata">

**Author:** ![Ratul\_Bhattacharya](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ratul_bhattacharya/32/62281_2.png) [@Ratul\_Bhattacharya](https://meta.discourse.org/u/Ratul_Bhattacharya)\
**Post date:** [10월 1, 2016, 5:29오후 UTC](https://meta.discourse.org/t/is-it-possible-to-bulk-upload-tags/50940/8 "2016-10-01T17:29:51Z")

</div>

thanks a lot @cpradio. really appreciate it. will there be a performance impact of having so many tags? i currently have a linode cloud with 2gb memory and 40 gb hdd. dual core.

---

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [10월 1, 2016, 5:36오후 UTC](https://meta.discourse.org/t/is-it-possible-to-bulk-upload-tags/50940/9 "2016-10-01T17:36:29Z")

</div>

Not sure. I can’t say I’ve ever seen a forum with 3500 tags before.

---

<div class="post-metadata">

**Author:** ![Ratul\_Bhattacharya](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ratul_bhattacharya/32/62281_2.png) [@Ratul\_Bhattacharya](https://meta.discourse.org/u/Ratul_Bhattacharya)\
**Post date:** [10월 1, 2016, 8:53오후 UTC](https://meta.discourse.org/t/is-it-possible-to-bulk-upload-tags/50940/10 "2016-10-01T20:53:39Z")

</div>

ok thanks for the information

---

<div class="post-metadata">

**Author:** ![Ratul\_Bhattacharya](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ratul_bhattacharya/32/62281_2.png) [@Ratul\_Bhattacharya](https://meta.discourse.org/u/Ratul_Bhattacharya)\
**Post date:** [10월 2, 2016, 8:07오후 UTC](https://meta.discourse.org/t/is-it-possible-to-bulk-upload-tags/50940/11 "2016-10-02T20:07:12Z")

</div>

@cpradio : quick question, if I want to add multiple tags in a single topic then should I just separate them with commas?

---

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [10월 2, 2016, 8:26오후 UTC](https://meta.discourse.org/t/is-it-possible-to-bulk-upload-tags/50940/12 "2016-10-02T20:26:23Z")

</div>

Do you mean via a PUT request?, I think you send an array of tags.

The best way is to open the dev console and watch the network tag as you add multiple tags to a topic.

---

<div class="post-metadata">

**Author:** ![Ratul\_Bhattacharya](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ratul_bhattacharya/32/62281_2.png) [@Ratul\_Bhattacharya](https://meta.discourse.org/u/Ratul_Bhattacharya)\
**Post date:** [10월 2, 2016, 8:29오후 UTC](https://meta.discourse.org/t/is-it-possible-to-bulk-upload-tags/50940/13 "2016-10-02T20:29:30Z")

</div>

unfortunately i see the max limit as 5 tags 😞

---

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [10월 2, 2016, 8:30오후 UTC](https://meta.discourse.org/t/is-it-possible-to-bulk-upload-tags/50940/14 "2016-10-02T20:30:01Z")

</div>

That is a site setting.

---

<div class="post-metadata">

**Author:** ![Ratul\_Bhattacharya](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ratul_bhattacharya/32/62281_2.png) [@Ratul\_Bhattacharya](https://meta.discourse.org/u/Ratul_Bhattacharya)\
**Post date:** [10월 2, 2016, 8:38오후 UTC](https://meta.discourse.org/t/is-it-possible-to-bulk-upload-tags/50940/15 "2016-10-02T20:38:48Z")

</div>

Ahh I see, is there a performance impact if i add 300 tags per topic?

---

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [10월 2, 2016, 8:40오후 UTC](https://meta.discourse.org/t/is-it-possible-to-bulk-upload-tags/50940/16 "2016-10-02T20:40:15Z")

</div>

In a staff category? Doubtful, just realize you’d really want to change it to a lower limit afterwards, which will make it impossible to edit those staff topics again without removing a good majority of the tags.

---

<div class="post-metadata">

**Author:** ![Ratul\_Bhattacharya](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ratul_bhattacharya/32/62281_2.png) [@Ratul\_Bhattacharya](https://meta.discourse.org/u/Ratul_Bhattacharya)\
**Post date:** [10월 2, 2016, 8:42오후 UTC](https://meta.discourse.org/t/is-it-possible-to-bulk-upload-tags/50940/17 "2016-10-02T20:42:53Z")

</div>

yes for sure. will reduce. Will create 10 topics having 300 ish tags each.

---

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [10월 15, 2018, 8:59오전 UTC](https://meta.discourse.org/t/is-it-possible-to-bulk-upload-tags/50940/18 "2018-10-15T08:59:59Z")

</div>

It is now possible to upload tags in bulk:

[https://github.com/discourse/discourse/commit/7ac08f936e24572842bd93c122a794dd9c0ec3d5](https://github.com/discourse/discourse/commit/7ac08f936e24572842bd93c122a794dd9c0ec3d5)

---

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [10월 15, 2018, 9:00오전 UTC](https://meta.discourse.org/t/is-it-possible-to-bulk-upload-tags/50940/19 "2018-10-15T09:00:01Z")

</div>


