All threads / How do I upload files larger than 2GB?

Ask A Question

Notifications

You’re not receiving notifications from this thread.

How do I upload files larger than 2GB?

Jimmy McDaniel asked in Rails

I've watched the series on uploading files with Shrine, and I learned a great deal. However, there's still that issue with large files consuming all the resources on the server for a very long time. What's the generally accepted process to accept large files? Are there any episodes here on GoRails that address this?

Thanks in advance.

Hey Jimmy,

Yeah that stuff can be gnarly. Generally, it's probably best to do the direct to S3 uploads so that you aren't bogging down your server with uploads. That's going to take a load off your server and then you can process that file later in background jobs if needed.

I'm not really an expert on uploading massive files but that's probably the best place to start. I'm sure that Janko the author of Shrine can help with more ideas if you message him about it. Also maybe some other people in the community here have handled situations like that who can give some advice for uploading and processing big files.

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 33,399+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.