# Discourse incorrectly detecting uploaded file as an image

**URL:** <https://meta.discourse.org/t/discourse-incorrectly-detecting-uploaded-file-as-an-image/283564>\
**Category:** Support\
**Created:** [October 26, 2023, 5:44pm UTC](https://meta.discourse.org/t/discourse-incorrectly-detecting-uploaded-file-as-an-image/283564 "2023-10-26T17:44:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [October 26, 2023, 5:47pm UTC](https://meta.discourse.org/t/discourse-incorrectly-detecting-uploaded-file-as-an-image/283564/2 "2023-10-26T17:47:00Z")

</div>

> [@xyzzy](#):
>
> Alternatively, I could configure Discourse to allow zip files and tell the users to zip up their files before uploading them, but I’d rather not open up the site to random zip file uploads. That seems like a security issue.

Another work around is adoption an extension for those weird files, like `.bin`, `.data` or really `.anythinggoes`, which should be enough for Discourse to keep those files alone.

---

_[View the full topic](https://meta.discourse.org/t/discourse-incorrectly-detecting-uploaded-file-as-an-image/283564)._
