Incorrectly getting mime-type for flv files

Fernando Perez lists at ruby-forum.com
Tue May 26 12:20:27 MSD 2009


> If you are refering to the mime type reported by paperclip (and inserted
> into the db), this has nothing to do with the mime type that nginx uses.
> Actually the mime type paperclip uses is taken from the user agent. If
> it doesn't suit your needs use a hook in your rails model or a custom
> paperclip processor.
Exactly. So what to use to correctly detect the content-type of an flv 
file so that I can authorize it in paperclip? Plug mimetype_fu in?
-- 
Posted via http://www.ruby-forum.com/.





More information about the nginx mailing list