Ruby On Rails :: Heroku file upload issue : Timeout

Uploading large files in Heroku

If you have forms uploading files to the server in Heroku, you may experience problems when file size is larger and internet bandwidth/speed of yours is normal. Heroku has a very small timeout set for operations/(HTTP requests). For heavy operation such as below, Heroku recommends to use background jobs.

  • Sending an email
  • Accessing a remote API (posting to Facebook, Twitter, querying Flickr, etc.)
  • Web scraping / crawling / Web spider operations
  • Rendering an image or PDF
  • Heavy computation (computing a fibonacci sequence, etc.)
  • Heavy database usage (slow or numerous queries, N+1 queries)



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s