# Send\_file sends an empty file to browser

**URL:** <https://www.ruby-forum.com/t/send-file-sends-an-empty-file-to-browser/190965>\
**Category:** Ruby\
**Created:** [July 1, 2010, 7:09pm UTC](https://www.ruby-forum.com/t/send-file-sends-an-empty-file-to-browser/190965 "2010-07-01T19:09:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![deco10](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ac8455/32.png) [@deco10](https://www.ruby-forum.com/u/deco10)\
**Post date:** [July 1, 2010, 7:09pm UTC](https://www.ruby-forum.com/t/send-file-sends-an-empty-file-to-browser/190965/1 "2010-07-01T19:09:12Z")

</div>

Hi,  
I’m using merb as a framework but I suspect the issue is related to ruby  
and my system.

When I use send\_file with an absolute path it sends an approrpriately  
named file to the browser, but the file is empty. The file exists on  
the disc and has content. Any suggestions about resolving this? I’ve  
been struggling with this for a few days now.

Thanks! 🙂
