TXT File Upload w/o GridFS using MEAN Stack

22 views
Skip to first unread message

Joshua Swiss

unread,
Dec 8, 2015, 10:19:24 AM12/8/15
to mongoose-users
Hi All:

Probably a bit of a noob question, but I'm using Node and Mongoose to develop a site where budget data is uploaded with a .TXT file, then parsed and displayed. The text files are tiny, a few dozen kbs, so not really necessary to use GridFS. I'd like to store the files direct to my database rather than to a local file. Is that possible?

I've seen the mongoose-file module, but it's a few years old now. Also, some of the examples I've seen have used either Buffer or Mixed data types in the schema. Is there a best practice for saving small, non-image files to my db?

Thanks,

Josh

Sergey Lyubka

unread,
Dec 8, 2015, 10:24:19 AM12/8/15
to mongoose-users
Josh, this mailing list is dedicated to the Mongoose web server, https://github.com/cesanta/mongoose

--
You received this message because you are subscribed to the Google Groups "mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongoose-user...@googlegroups.com.
To post to this group, send email to mongoos...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/d/optout.

Joshua Swiss

unread,
Dec 8, 2015, 10:26:38 AM12/8/15
to mongoos...@googlegroups.com
Oops! My apologies!

----
Joshua I Swiss
Portfolio

+254.708.170.742 (Kenya) 
+211.955.77.1158 (South Sudan)
Skype: joshua.swiss

--
You received this message because you are subscribed to a topic in the Google Groups "mongoose-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mongoose-users/CX4ImSNY1ug/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mongoose-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages