Paperclip: validates_attachment_content_type always fails in IE 6 and 7 for jepg and png image

If you are using paperclip plugin for uploading images in your rails application and you are validating image format. Image format validation working in Firefox, safari but not in IE, even you are uploading image in correct format in IE then they showing error,  image format not correct. eg: validates_attachment_content_type :image, :message => 'Please upload … Continue reading Paperclip: validates_attachment_content_type always fails in IE 6 and 7 for jepg and png image

CMYK format images not displaying properly in IE 7

I am using paperclip plugin in my application for  uploading images. But when I am uploading CMYK format image  then this format image not displaying in IE7 properly. after some search I got the following solution and it's working. have added one line code in "paperclip" pluginn. Go to the  -  "vendor\plugins\paperclip\lib\paperclip\thumbnail.rb" On line no.64 … Continue reading CMYK format images not displaying properly in IE 7

Uploading multiple files with nginx upload module and upload progress bar

Uploading files 'efficiently' has also been a pain point in most apps. I finally got to experiment with: nginx upload module (http://www.grid.net.ru/nginx/upload.en.html) nginx upload progress module http://wiki.nginx.org/NginxHttpUploadProgressModule) and upload multiple files via paperclip. There are resources available for handing these individually but not together. I used references from here and here. It is advisable to … Continue reading Uploading multiple files with nginx upload module and upload progress bar

Video encoding with Encoding.com and Rackspace Cloudfiles

We have been working with a couple of media centric web-portals which require video encoding, storage and streaming. Initial guidance and research showed us a couple of successful approaches: Heywatch! with Amazon S3 / Amazon CloudFront encoding.com with S3 / Cloudfiles / Limelight CDN solution After some deliberation and talks we finally settled on encoding.com … Continue reading Video encoding with Encoding.com and Rackspace Cloudfiles

Attachment, Attachments, Attached

You need Attachments everywhere in Internet World. Its when you are writing a mail, creating your profile at some social network website, uploading images at Photograph managing sites, so on & so on. Internet world is incomplete without attachments. So, attachment can be an image, a video file, audio file, a text document(actually if we … Continue reading Attachment, Attachments, Attached