# Paperclip - how to display images that were not uploaded?

**URL:** <https://www.ruby-forum.com/t/paperclip-how-to-display-images-that-were-not-uploaded/164504>\
**Category:** Rails\
**Created:** [April 2, 2009, 12:22am UTC](https://www.ruby-forum.com/t/paperclip-how-to-display-images-that-were-not-uploaded/164504 "2009-04-02T00:22:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![emmek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/a698b9/32.png) [@emmek](https://www.ruby-forum.com/u/emmek)\
**Post date:** [April 2, 2009, 12:22am UTC](https://www.ruby-forum.com/t/paperclip-how-to-display-images-that-were-not-uploaded/164504/1 "2009-04-02T00:22:01Z")

</div>

I’m using Paperclip plugin to store images in my application.

In the database I have columns like: image\_file\_name,  
image\_content\_type, image\_file\_size.

When I upload an image via form, everything works well. But when I put  
filename directly into the database and place properly named image in  
the place expected, the image doesn’t appear on the webpage. Even if I  
just rename uploaded file and accordingly change the name in the  
database - it disappears from the view.

Why Paperclip behaves that way? Is there any other place where Paperclip  
stores info about filenames and it’s loosing consistency when the names  
are changed? So how to display images that have never been uploaded? (I  
need it to display images from the old database and old image storing  
system)

---

<div class="post-metadata">

**Author:** ![emmek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/a698b9/32.png) [@emmek](https://www.ruby-forum.com/u/emmek)\
**Post date:** [April 2, 2009, 4:01pm UTC](https://www.ruby-forum.com/t/paperclip-how-to-display-images-that-were-not-uploaded/164504/2 "2009-04-02T16:01:51Z")

</div>

Ok, I found solution. I just must not to write file names directly into  
database. When I place a file in the proper place it is displayed in the  
view.
