53GB

NextJS Server Actions Upload Image Files to Cloudinary, Mongodb, Mongoose



NextJS Server Actions Upload Image Files to Cloudinary, Mongodb, Mongoose

NextJS Server Actions Upload Image Files to Cloudinary, Mongodb, Mongoose.

In this video weโ€™ll look at handling file uploads using server actions in NextJs 13, weโ€™re going to use signed upload in Cloudinary as our cloud storage.

๐Ÿ”ฅMain features:
โ€“ Saving files Inside Local Directory
โ€“ Upload files to the cloudinary

Demo: https://nextjs-upload-devat.vercel.app/
๐Ÿ”ฅJoin member to get source: https://www.youtube.com/channel/UCGRDayozk2qch3vw-qAtQng/join
๐Ÿ”ฅSource code: https://www.patreon.com/posts/85741604

๐Ÿ“š Join Membership:
https://www.youtube.com/channel/UCGRDayozk2qch3vw-qAtQng/join

๐Ÿ“š My Courses:
https://www.youtube.com/playlist?list=UUMOGRDayozk2qch3vw-qAtQng

๐Ÿ“š VScode Extensions:
ES7+ React/Redux/React-Native snippets
Community Material Theme
Material Icon Theme

โ˜•โ˜• Buy Me a Coffee . Thank You ! โ˜•โ˜•
https://www.buymeacoffee.com/QK1DkYS
Paypal : https://paypal.me/tuananh251192
Vietcombank: 0061001044348 (LE TUAN ANH)
Momo : 0374481936

๐ŸŒŽ Find Me Here:
Mail: battuosai03@gmail.com
Github: https://github.com/devat-youtuber
Codepen: https://codepen.io/tuan-anh-the-decoder/pens/public

๐Ÿš€ Please! Subscribe, Like and Share. ๐Ÿ”ฅ
๐Ÿš€Thanks for watching video!๐Ÿ”ฅ
๐Ÿš€Have you good day!๐Ÿ”ฅ

#code #reactjs #nextjs
00:00 โ€“ Demo
01:02 โ€“ Setup Nextjs
02:03 โ€“ Setup Libraries
03:41 โ€“ Upload Form
06:12 โ€“ handleInputFiles
09:30 โ€“ Preview ( PhotoCard )
12:32 โ€“ handleDeleteFile
15:12 โ€“ ButtonSubmit ( useFormStatus )
17:26 โ€“ handleUpload
20:40 โ€“ Saving files Inside Local Directory
32:04 โ€“ Upload files to the cloudinary
37:34 โ€“ Get All Photos
48:17 โ€“ Delete Photo
52:20 โ€“ Connect to MongoDB (mongoose)
55:47 โ€“ Photo Model (mongoose)
57:09 โ€“ Save Photos to Mongodb
01:00:34 โ€“ Get All Photos
01:02:28 โ€“ Delete Photo
01:04:55 โ€“ Deploy Vercel

Exit mobile version