# Security checks on uploads

**URL:** <https://meta.discourse.org/t/security-checks-on-uploads/26839>\
**Category:** Product Support\
**Created:** [March 26, 2015, 7:05pm UTC](https://meta.discourse.org/t/security-checks-on-uploads/26839 "2015-03-26T19:05:11Z")\
**Posts on this page:** 1\
**Showing post:** 33

<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:** [December 21, 2015, 3:14pm UTC](https://meta.discourse.org/t/security-checks-on-uploads/26839/33 "2015-12-21T15:14:00Z")

</div>

We were already checking the dimensions of the uploaded images but the code wasn’t working. Improved it and added a test to make sure it doesn’t regress

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

---

_[View the full topic](https://meta.discourse.org/t/security-checks-on-uploads/26839)._
