Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloaded file always 0 bytes #5

Closed
milgner opened this issue Jun 9, 2011 · 2 comments
Closed

Downloaded file always 0 bytes #5

milgner opened this issue Jun 9, 2011 · 2 comments

Comments

@milgner
Copy link
Contributor

milgner commented Jun 9, 2011

Just installed Boxroom, running on Apache 2, Passenger, Ruby Enterprise Edition.
Everything seems to work fine but downloaded files always have 0 bytes. At first I though that my first file was maybe too large (around 95MB), so I tried a simple CSV with a few kb that I had lying around, but that didn't work either.
The log says

Sent file #{Rails.root}/uploads/production/2/original/2 (0.1ms)
Completed 200 OK in 2ms

So no help there. The files in the uploads/production directory have the correct size.
Any ideas?

btw: I'd be willing to contribute a german translation in case you're interested.

@milgner
Copy link
Contributor Author

milgner commented Jun 9, 2011

Nevermind... Although it says "for nginx", uncommenting
config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
in config/environments/production.rb does the trick.
Maybe a note in the readme would be helpful?

@milgner milgner closed this as completed Jun 9, 2011
@mischa78
Copy link
Owner

Thanks for letting me know. I will add a comment to the readme. I would be awesome if you could contribute the German translation!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants