Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Cant upload file greater than 100kb #109

Open
westonganger opened this issue Dec 1, 2014 · 3 comments
Open

Cant upload file greater than 100kb #109

westonganger opened this issue Dec 1, 2014 · 3 comments
Labels

Comments

@westonganger
Copy link

I get routing errors when trying to upload a file greater than 100kb.

The problem doesnt exist when running webrick using "rails server"

@ysbaddaden
Copy link
Owner

I had some problems too with file uploads. Some files will always fail, while others are fine.

It may have something to do with Racker. I don't recall having problems with port-forwarding to a vagrant box.

@ysbaddaden ysbaddaden added the bug label Dec 2, 2014
@lasseebert
Copy link

I had the same experience. On some files upload fails using prax, but succeeds using unicorn.

I get a Rack error, which looks like this bug: rack/rack#676, but I'm currently stuck at rack ~> 1.4.5 and have not tested with 1.6.0 yet.

I have not noticed a pattern for which files will fail to upload with prax.

Top of stacktrace:

EOFError (bad content body):
  rack (1.4.5) lib/rack/multipart/parser.rb:74:in `block in fast_forward_to_first_boundary'
  rack (1.4.5) lib/rack/multipart/parser.rb:72:in `loop'
  rack (1.4.5) lib/rack/multipart/parser.rb:72:in `fast_forward_to_first_boundary'
  rack (1.4.5) lib/rack/multipart/parser.rb:15:in `parse'
  rack (1.4.5) lib/rack/multipart.rb:25:in `parse_multipart'
  rack (1.4.5) lib/rack/request.rb:336:in `parse_multipart'
  rack (1.4.5) lib/rack/request.rb:201:in `POST'

@ghost
Copy link

ghost commented Nov 24, 2015

Look at this:
basecamp/pow@d3f4836

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

No branches or pull requests

3 participants