Posts Tagged ‘ruby on rails’

Booklet Cover Image Upload Fixed for Internet Explorer

By Victor Goh | Published: March 7th, 2009

The MobileBooklet.com site is developed and tested mostly on the Mac OS using the Safari and Firefox browser. I was surprised to find out that booklet cover image upload did not work on Internet Explorer. 

Safari and Firefox uses the following mime-types for image file uploads:

  • image/jpeg for jpg files 
  • image/png for png files 

Internet Explorer uses the mime-types:

  • image/pjpeg for jpg files
  • image/x-png for png files

I was happily creating mobile booklets using Safari and Firefox, so the error was not discovered until someone using Internet Explorer reported the error. (Thanks William!)

So, I made a minor change to ensure the MobileBooklet.com website will accept the following mime-types: 

  • image/jpeg
  • image/pjpeg
  • image/png
  • image/x-png 

Problem fixed!

MobileBooklet.com is built using Ruby on Rails and the image uploading is handled by the Paperclip plugin.