# Reading content/type of file

**URL:** <https://www.ruby-forum.com/t/reading-content-type-of-file/139667>\
**Category:** Rails\
**Created:** [June 5, 2008, 10:15pm UTC](https://www.ruby-forum.com/t/reading-content-type-of-file/139667 "2008-06-05T22:15:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankit2584](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/51bf81/32.png) [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Post date:** [June 5, 2008, 10:15pm UTC](https://www.ruby-forum.com/t/reading-content-type-of-file/139667/1 "2008-06-05T22:15:52Z")

</div>

Hello,  
In order to mail how do i find out the content/type of the file  
attached…

Thank you.
