Saving Images in Mongodb Using GridFS Using Meteor

I am new to meteor and mongodb, and I am looking for a way to store many images at once in the mongodb collection. If there is a demo or something that can help me, please give it to me. thanks!

+4
source share
1 answer

Controlling file uploads is complicated and complex, it depends on what file and number of files you have in

Small number of files

If the number and size of images or files is small, you can try mongoDB GridFS, there are two well-known packages that support GridFS:

  • CollectionFS: meteor add cfs:standard-packages cfs:gridfs CollectionFS ( ) AWS-S3 Dropbox. CFS . , , , ... ( )
  • file-collection: meteor add vsivsi:file-collection CFS, GridFS. CFS, , IMO .

! GridFS , MongoDB , . mongolab compose.io( mongohq). , mongo , , db, ! mongoDB ...

, ?

: S3 ( Google cloud/Azure), . S3 , , (Dropbox - S3).

, ... S3 . slingshot ( -) ( , AWS SDK, > ).

, S3 , , , , / , , S3 - .

FAST

, , , lol.

Filepicker ( filestack), , . , filepicker.io, ( S3, ).

mongoDB, . S3 + cloudfront (CDN ) . , AWS. filepicker, , , .

+13

Source: https://habr.com/ru/post/1622944/


All Articles