Reputation: 165
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
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
Second solution
move upload file into background jobs
Upvotes: 0
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