Content type and file uploads

I’m a litle bit confused. I see that file uploads use the Tempfile
object, however the content_type method is not part of Ruby’s Tempfile
class. Where does the content_type method come from? Where can I find
a list of all its possible values?

Thanks for your help!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs