# Display file contents in browser

**URL:** <https://www.ruby-forum.com/t/display-file-contents-in-browser/143870>\
**Category:** Ruby\
**Created:** [July 23, 2008, 12:07pm UTC](https://www.ruby-forum.com/t/display-file-contents-in-browser/143870 "2008-07-23T12:07:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ganana\_srishti](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e480ec/32.png) [@ganana\_srishti](https://www.ruby-forum.com/u/ganana_srishti)\
**Post date:** [July 23, 2008, 12:07pm UTC](https://www.ruby-forum.com/t/display-file-contents-in-browser/143870/1 "2008-07-23T12:07:52Z")

</div>

Hi,  
I have uploaded file and i am showing all uploaded files in browser with  
links the problem here is i need to show the file contents in the  
browser itself without downloading… is there any solution plz reply  
me

---

<div class="post-metadata">

**Author:** ![ganana\_srishti](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e480ec/32.png) [@ganana\_srishti](https://www.ruby-forum.com/u/ganana_srishti)\
**Post date:** [January 27, 2009, 4:01am UTC](https://www.ruby-forum.com/t/display-file-contents-in-browser/143870/2 "2009-01-27T04:01:31Z")

</div>

Pragash Mr. wrote:

> Hi,  
> I have uploaded file and i am showing all uploaded files in browser with  
> links the problem here is i need to show the file contents in the  
> browser itself without downloading… is there any solution plz reply  
> me

ping!

---

<div class="post-metadata">

**Author:** ![ganana\_srishti](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e480ec/32.png) [@ganana\_srishti](https://www.ruby-forum.com/u/ganana_srishti)\
**Post date:** [January 27, 2009, 9:24am UTC](https://www.ruby-forum.com/t/display-file-contents-in-browser/143870/3 "2009-01-27T09:24:33Z")

</div>

Jer Del R. wrote:

> ping!

[http://catb.org/~esr/faqs/smart-questions.html#intro](http://catb.org/~esr/faqs/smart-questions.html#intro)
