# How to enforce one image per post rule?

**URL:** <https://meta.discourse.org/t/how-to-enforce-one-image-per-post-rule/51922>\
**Category:** Development\
**Created:** [2016年十月23日 11:34 UTC](https://meta.discourse.org/t/how-to-enforce-one-image-per-post-rule/51922 "2016-10-23T11:34:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Overgrow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overgrow/32/478189_2.png) [@Overgrow](https://meta.discourse.org/u/Overgrow)\
**Post date:** [2016年十月23日 11:34 UTC](https://meta.discourse.org/t/how-to-enforce-one-image-per-post-rule/51922/1 "2016-10-23T11:34:09Z")

</div>

I’ve got troubles with number of pretty large images uploaded to single post, what leads to slow loading of post chunks… I’d like to solve it with one image (upload) per post…

Can you more experienced devs please advise how to enforce this most cleanly?

I know that there is similar mechanism for trust\_level\_0 users… `newuser_max_images`  
Would it be wise to use and extend it?

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2016年十月24日 09:41 UTC](https://meta.discourse.org/t/how-to-enforce-one-image-per-post-rule/51922/2 "2016-10-24T09:41:19Z")

</div>

I would build a plugin to add such limitations. Let us know if we’re missing some hooks.

---

<div class="post-metadata">

**Author:** ![Overgrow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overgrow/32/478189_2.png) [@Overgrow](https://meta.discourse.org/u/Overgrow)\
**Post date:** [2016年十月24日 21:53 UTC](https://meta.discourse.org/t/how-to-enforce-one-image-per-post-rule/51922/3 "2016-10-24T21:53:46Z")

</div>

Let me check.. I was waiting till I find if anyone has some info or findings (or plugin ready 🙂 ) before I dig deep into it :)… I’ll let you know.
