fhaider
fhaider

Reputation: 165

Carrierwave Timeout

I have used carrierwave for my users to upload files in my rails app. When a user uploads multiple files of size more than 400mb (approx.) they get a timeout error.

Note: I've hosted my app rails app on heroku.

Upvotes: 1

Views: 1545

Answers (2)

praaveen V R
praaveen V R

Reputation: 1261

First solution is you can use refile gem.

Reason is " Effortless direct uploads, even to S3 "

This gem is from Jonas Nicklas, who is behind Carrierwave gem

refile

Blog on reason for refile gem

Second solution

move upload file into background jobs

Upvotes: 0

Anid Monsur
Anid Monsur

Reputation: 4538

Uploading large files through Heroku is generally not recommended. They limit the request to 30 seconds, which would not be enough time for 400MB.

If you are open to using S3, Heroku provides a potential Rails solution for that.

Upvotes: 1

Related Questions