# Discourseがアップロードされたファイルを誤って画像として検出する

**URL:** <https://meta.discourse.org/t/discourse-incorrectly-detecting-uploaded-file-as-an-image/283564>\
**Category:** Support\
**Created:** [2023 年 10 月 26 日午後 5:44 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:** 6

<div class="post-metadata">

**Author:** ![xyzzy](https://avatars.discourse-cdn.com/v4/letter/x/e36b37/32.png) [@xyzzy](https://meta.discourse.org/u/xyzzy)\
**Post date:** [2023 年 11 月 21 日午後 10:46 UTC](https://meta.discourse.org/t/discourse-incorrectly-detecting-uploaded-file-as-an-image/283564/6 "2023-11-21T22:46:47Z")

</div>

素晴らしい！これは驚異的な分析です！ありがとうございます！

いくつか簡単な質問があります。

1. これらの変更により、ファイルは画像として検出されなくなり、非画像としてアップロードされて投稿の右側に表示されるようになりますか？

2. 私が正しく理解していれば、この変更をローカルのDiscourseインスタンスで行って試すか、または将来のDiscourseリリースに含まれるまでこれを使用することを提案されています。しかし、どのようにすればよいですか？（私は経験豊富なソフトウェア開発者ですが、Dockerの経験は限られており、Rubyの経験はありません。）

3. 調整が必要なFastImageの呼び出しは、models/upload.rbにありますよね？

---

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