Images without extension show as link, not photo #1446

Closed
bostonaholic opened this Issue Dec 19, 2012 · 1 comment

Projects

None yet

2 participants

@bostonaholic

rails_admin v0.3.0

I am using paperclip to upload images. I have noticed that when uploading images which do not have a file extension, it shows as a link to the image (list, show, edit) and not the image itself.

The image shows normally in the app however.

I would appreciate a fix for this or at least a workaround for the time being.

Cheers!

Screen Shot 2012-12-18 at 11 46 45 PM

@fernandomm fernandomm added a commit to fernandomm/rails_admin that referenced this issue Jan 28, 2013
@fernandomm fernandomm Fixes issue #1446 by checking file type with filemagic gem. 08367cf
@mshibuya
Collaborator

You could do:

  field :photo do
    image true
  end

to force photos to be shown as image.

@mshibuya mshibuya closed this Jun 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment