P
P
picka2021-01-09 15:40:47
Express.js
picka, 2021-01-09 15:40:47

Uploading files to an Express server?

Hello!
I have a project: Nuxt.js for the front and an Express attached to it, on which the API is currently running.
With the help of Nuxt / auth, I made myself an admin panel, at the entrance to which I can add, delete and change entries in MongoDB.
Everything works well, but now I would like to add a way to add photos and videos to the created record.
I see it this way, while creating a record, upload photos and videos through the front, which will later be stored on the server, in a certain hierarchy, and I will add paths to the added files to the MongoDB record.

Tell me which package I can use for this, or a resource where you can get information.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Slaxik, 2021-01-09
@Slaksik

look at the multer package in npm, the rest is just working with the base.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question