Fernando Perez
May 26, 2009 04:20AM
> 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/.
Subject Author Posted

Incorrectly getting mime-type for flv files

Fernando Perez May 26, 2009 03:32AM

Re: Incorrectly getting mime-type for flv files

Jean-Philippe Moal May 26, 2009 03:44AM

Re: Incorrectly getting mime-type for flv files

Fernando Perez May 26, 2009 04:20AM

Re: Incorrectly getting mime-type for flv files

Igor Sysoev May 26, 2009 06:07AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 264
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready