# X\_send\_file download 1byte file instade of original size

**URL:** <https://www.ruby-forum.com/t/x-send-file-download-1byte-file-instade-of-original-size/158807>\
**Category:** Rails\
**Created:** [January 28, 2009, 9:23am UTC](https://www.ruby-forum.com/t/x-send-file-download-1byte-file-instade-of-original-size/158807 "2009-01-28T09:23:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dharmdip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e274bd/32.png) [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Post date:** [January 28, 2009, 9:23am UTC](https://www.ruby-forum.com/t/x-send-file-download-1byte-file-instade-of-original-size/158807/1 "2009-01-28T09:23:11Z")

</div>

i m using x\_send\_file pluggins and download file then only 1byte file is  
downloaded.

in Controller  
x\_send\_file("#{RAILS\_ROOT}/public#{params[:file]}")

if you have idea for this problem so give me a solution
