0

I am currently working on a project based on MEAN FULL STACK that requires uploading a CSV file from a personal space to MONGODB by a general user and then reading the uploaded CSV file from mongoDB and then displaying it to the front-end using html and css.

I am unable to figure out how to upload the CSV file on MongoDb and read certain parts from it to view it on the browser.

1 Answer 1

1

mongoimport tool from MongoDB can help you with uploading data from CSV file to the MongoDB database. The mongoimport tool imports content from a CSV file created by mongoexport, or potentially, another third-party export tool.

mongoimport --db users --collection contacts --type csv --headerline --file /opt/backups/contacts.csv
Sign up to request clarification or add additional context in comments.

1 Comment

Worked. Appreciated!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.