enable upload of files to mongodb database