File Storage Location (Ruby on Rails)

I am new to Rails, I wanted to create a site to upload files: music, video, pictures, text. What is the best way to store files? I read about different methods: Database as a file, Amazon S3?

There will be many files ranging in size from 1 kb to 20 MB each.

Thank!

+3
source share
5 answers

Storing files in a database is not bad as such. It depends on the type of database.

Storing files in a relational database is not considered good practice for the reasons explained by the fable.

, , , . Dhruva , MongoDB , GridFS .

GridFS , , , .

- - GridFS - . Heroku mongohq.com, .

+3

, . , - Amazon S3 ( ), . carrierwave gem , . .

, .

.

, . , . , , 20gb db. , 10-20mb. , . (, S3), .

+3

Amazon S3 Heroku . Heroku , .

, , .

http://devcenter.heroku.com/articles/s3

+2
+2
source

I would recommend you use amazon s3 to store your files. This is the best.

0
source

All Articles