These are chat archives for Automattic/mongoose

May 2017
Gabriele Musco
May 12 2017 13:20
hello people. it is my first time making a project with node + mongo + mongoose (I'm familiar with django) and I'm a bit confused about file uploads. I have a Schema where I need the user to upload a file of variable size (something like 20MB per file, can vary quite a lot), and I have no idea how to implement a "FileField" in mongoose. I see there are some plugins like mongoose-file and mongoose-crate, as well as the Buffer type (altough I don't think this is suitable for the size of my files). I got a little more in depth with mongoose-file, but I don't really get how it works and how I should access my file when it's uploaded. Can you give me a tip and possibly an example project with mongoose and file uploads? thanks