File Upload Download Microservice in Nodejs Javascript | API for Multipart Form Data | Multer

preview_player
Показать описание
In this video, we will create microservices api to download & upload files in Nodejs Javascript. We will learn what “Multer” module in nodejs JavaScript. How to use “Multer” package to create storage for file upload in nodejs server.

* Multipart Form Data*
Multipart form data,The ENCTYPE attribute of form tag specifies the method of encoding for the form data. It is one of the two ways of encoding the HTML form. It is specifically used when file uploading is required in HTML form. It sends the form data to server in multiple parts because of large size of file.

* Important Nodejs Javascript Packages or Modules *

* Chapter Timestamps *
0:00 Welcome to File Upload Download Microservices in Nodejs Javascript
1:13 Agenda of Tutorial
2:30 Understanding Multer Nodejs Module
3:10 Coding Microservices for file upload & download in Nodejs
3:55 Coding config file
4:22 Coding to create disk storage using multer package
6:12 Coding Controller Component
9:24 Coding Routes Component
10:37 Coding Main Application Server Component
12:05 Running the nodejs microservice application
13:08 Testing File Upload Microservice POST Endpoint in Nodejs
15:43 Testing GET Endpoint to fetch file list from directory
17:04 Testing GET Endpoint to download file
18:40 Download Code from GIT Repository
19:08 Summary of Nodejs Microservice tutorial

#nodejstutorial #microservicestutorial #multer

*GIT Repository *

** CHECK OUT OUR OTHER VIDEOS **

** CHECK OUR PLAYLISTS **
Docker Containers Complete Tutorial

** ABOUT OUR CHANNEL **
CodeOneDigest is a youtube channel that produces videos on programming languages, cloud and container technologies, Software design principles, Java frameworks in English and Hindi languages.
Dosto, CodeOneDigest youtube channel pe aapko programming languages, container technology, cloud computing, software engineering se related videos milenge.

Check out our channel here:
Don’t forget to subscribe!

** OUR WEBSITE **

** GET IN TOUCH **

FOLLOW US ON SOCIAL - LIKE, SHARE & SUBSCRIBE
Get updates or reach out to Get updates on our Social Media Profiles!
Рекомендации по теме
Комментарии
Автор

Hello friends, new #video on #nodejs #javascript #microservices for #filedownload and #fileupload #multer #multipart #formdata #multipartformdata #javascript #projeect #application #tutorial #examples is published on #codeonedigest #youtube channel.
@java #java #aws #awscloud @awscloud @AWSCloudIndia #salesforce #Cloud #CloudComputing @YouTube #youtube #azure #msazure #codeonedigest @codeonedigest #nodejs #nodejs #javascript #microservices #nodejstutorial #learnnodejs #node.js #nodejsfileupload #nodejsmulter #nodejsmulterfileupload #nodejsmulterimageupload #nodejsapifileupload #nodejsapifiledownload #nodejsfileuploadapi #nodejsfileuploadusingmulter #nodejsfiledownload #nodejsfiledownloadapi #nodejsdownloadfilefromserver #nodejsmultipartfileupload #multerinnodejs

codeonedigest
Автор

Whoever watches it, If u make it just like in this video, u can probably have file name collisions and errors cause of that. If u want to use it, in multer.diskSotrage, in filename, where he writes "cb(null, file.originalname)" don't save the file with it's original name, generate a new random filename (for example current timestamp + some salt). U can then save it into ur database with fields: filePath, originalFileName (for example, to do minimal functionality) so u can access its original name as well

silentlyow
visit shbcf.ru