What is the best approach to handle large file uploads in a rails app?

后端 未结 5 1534
南方客
南方客 2020-12-23 11:47

I am interested in understanding the different approaches to handling large file uploads in a Rails application, 2-5Gb files.

I understand that in order to transfer

5条回答
  •  清歌不尽
    2020-12-23 12:16

    I think that Brad Werth nailed the answer

    just one approach could be upload directly to S3 (and even if you do need some reprocessing after you could theoretical use aws lambda to notify your app ... but to be honest I'm just guessing here, I'm about to solve the same problem myself, I'll expand on this later)

    http://aws.amazon.com/articles/1434

    if you use carrierwave

    • https://github.com/dwilkie/carrierwave_direct_example
    • Uploading large files on Heroku with Carrierwave

提交回复
热议问题