Thursday 19 January 2017

What is the correct way to upload and retrieve a PDF file?

I'm still a learner and I'm currently using express/mongoose/ejs for one of my websites and for one of my forms I'm trying to add an upload option so that the user can upload a PDF file. The PDF files are less than 2MB.Am I supposed to upload the PDF to my mongoDB or file system? Could someone point me in the right direction on how to go about this and where to get started properly?I have been looking at a few examples and blogs and I'm just overwhelmed by all the choices there are e.g. formidable, GridFS etc...

Submitted January 19, 2017 at 03:17PM by SparkDe

No comments:

Post a Comment