# 如何查找任何缺失的图片？

**URL:** <https://meta.discourse.org/t/how-to-find-any-missing-images/115672>\
**Category:** Product Support\
**Created:** [2019 年4 月 23 日 03:52 UTC](https://meta.discourse.org/t/how-to-find-any-missing-images/115672 "2019-04-23T03:52:14Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

作者： ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)\
发布日期： [2019 年4 月 30 日 04:42 UTC](https://meta.discourse.org/t/how-to-find-any-missing-images/115672/13 "2019-04-30T04:42:27Z")

</div>

here we go..

```plaintext
[1] pry(main)> PostCustomField.where(name: Post::MISSING_UPLOADS)
=> [#<PostCustomField:0x000055efb0edc790
  id: 337,
  post_id: 2396,
  name: "missing uploads",
  value: "[\"https://SITENAME/uploads/default/original/1X/da27c8c7525666c20b7e04bfd53ccb24647530c6.png\"]",
  created_at: Mon, 29 Apr 2019 20:50:02 UTC +00:00,
  updated_at: Mon, 29 Apr 2019 20:50:02 UTC +00:00>,
 #<PostCustomField:0x000055efb0ee30b8
  id: 338,
  post_id: 2785,
  name: "missing uploads",
  value: "[\"https://SITENAME/uploads/default/original/1X/022705388395c48c415d699d2332bc58d44346c0.png\"]",
  created_at: Mon, 29 Apr 2019 20:50:02 UTC +00:00,
  updated_at: Mon, 29 Apr 2019 20:50:02 UTC +00:00>,
 #<PostCustomField:0x000055efb0ee4238
  id: 339,
  post_id: 2792,
  name: "missing uploads",
  value: "[\"https://SITENAME/uploads/default/original/1X/27bfa704ffb22c4a1afe28c8956dc5ed41731bec.png\"]",
  created_at: Mon, 29 Apr 2019 20:50:02 UTC +00:00,
  updated_at: Mon, 29 Apr 2019 20:50:02 UTC +00:00>]
[3

```

This is very useful.. I can probably work it out from here.

I guess the problem was that the move was never done, and the backup script stopped backing up the old location?

---

_[View the full topic](https://meta.discourse.org/t/how-to-find-any-missing-images/115672)._
