Upload and Store Images in MySQL using Node.Js, Express, Express-FileUpload & Express-Handlebars

preview_player
Показать описание
Today we are going to explore the basic usage of Express-FileUpload. In addition to this, I will show you how you can save/update a user record with a profile image that you can upload.

Source Files:

Chapters:
0:00 Introduction:
1:16 NPM Project Setup
3:54 Creating Express Server
5:51 Setting up Layouts & Routes
9:46 Express Upload Form
21:50 User Card
33:40 Database
52:05 Ending

Credit:
Cat photo by Cédric VT on Unsplash

Discounts:

Recording Equipment:

Computer Gear:

Connect with me:

#nodejs #mysql
Рекомендации по теме
Комментарии
Автор

I am enjoying Node.js and I am planning to make more videos. If this is something you are interested in please consider subscribing :-)

RaddyDev
Автор

excellent job buddy, i have moved my stack on nodejs after watching your tutorials.

muhammadhamza
Автор

I'm here because of the mysql + nodejs combination. Thank you already subscribed!!

xfilercuba
Автор

And again, you saved my day! I was already trying to upload files in my project but I always had some issues which doesn't really allowed me to upload any files.
Thank you very much!

siam
Автор

Thanks a lot you and god together helped me a lot god bless you buddy

ntcnppf
Автор

I enjoyed the tutorial but I have a question: does this upload the actual image to the database or just the name of the image as a string for the handler to then find in the upload folder? I was hoping to be able to upload the actual image to MySQL.

potterfreak
Автор

Great tutorial, keep it up! Saved my day

eduardostamm
Автор

thank you for the clear, easy to listen and to understand explanations.
i like your voice tbh no homo lol unless
you are not shouting and you speak calm and slowly

flowerofash
Автор

thank u so much for this video, the explanation was simple and straightforward. it really helped me a lot :)

rahafalrabeea
Автор

great video, very easy to follow thank you very much

harithalbadry
Автор

That was a great tut. You could have also used timestamp for naming your images...

samart
Автор

hello thank you so much for your teaching, i real appreciate it.i would like to know if i can use nodejs to build full system without php?

omarymb
Автор

hey Raddy, thanks. if i can have some advices: i want to take photos from webcam and add this photos in a database ( mysql ) and later use this photos for authentification using face-api.js

aked
Автор

You have added 1 subscriber successfully!!

bhargavsolanki
Автор

Could you pls make a video, in profile section should show the posted ad details in that admin can delete update ad(selling)🙏

bhargavsolanki
Автор

Awesome video Raddy! I have a question about the following code: connection.query('UPDATE user SET profile_image = ? WHERE id = "1"'

This sets the uploaded image file to the user where the id = 1. If there are multiple users with different user ids, is there a way to change the code so it is not only updating the image where the user id = 1?

juliasotomayor
Автор

Hey Raddy, I tried your code and it doesn't seem to upload the image at all.. might want to take another look at this

thomasgardner
Автор

Hi instead of images iam trying your code with multiple, when iam testing for file has selected or not, files get selected but not uploading when click on submit, I am getting no files were uploaded

akhiill
Автор

followed your tutorial but when i try uploading an image with my frontend lets use your example from your code in the samplefile=req.files.samplefile, the server keeps crashing saying req.files.samplefile is undefined but when i test the api route with postman everything works as expected

angerfist
Автор

Hi, is there any way to store and access the files in a different location from the project folder in the same machine? I wouldn't want to load up an entire library of files to work on a puny project

aravindmuthu