Next.js 13 Full Stack E-commerce App #18 | Update Profile, Upload Avatar, Update next-auth Session

  Рет қаралды 5,731

Coding With Abbas

Coding With Abbas

Күн бұрын

Git Repo Link:
github.com/ghu...
Checkout my In-Depth Next.js Masterclass on Udemy Courses:
www.udemy.com/...
Next.js 13 Authentication with Next-Auth:
• Next.js Authentication...
================================================================
⚙️ Gadgets I use for Recording:
💻 Laptop - Macbook PRO M1 - 16/512
amzn.to/4eUqrSe
🎤 MIC - Samson Technologies Q2U USB/XLR Dynamic Microphone
amzn.to/3W9Z4wl
🖱️Mouse - Logitech G402 Gaming Mouse Hyperion Fury USB, Black
amzn.to/3RY4xUy
⌨️ Keyboard - Logitech K380 Multi-Device Bluetooth Keyboard
amzn.to/3RY4Fn0
🖥️ Monitor - UltraSharp 24-Inch Screen Led-Lit Monitor (U2419H)
amzn.to/4bxidN6
================================================================
In this tutorial video, we'll be continuing our development of a full-stack e-commerce app using Next.js 13. In this episode, we'll be focusing on updating user profiles and allowing users to upload avatars. We'll also be diving into how to update the user session using next-auth.
Throughout the video, we'll walk you through the step-by-step process of implementing these features, providing helpful tips and explanations along the way. By the end of this tutorial, you'll have a better understanding of how to handle user data and sessions within your Next.js 13 e-commerce application.
If you're looking to enhance your Next.js development skills, or simply want to learn more about building e-commerce apps, then this tutorial is perfect for you. Don't forget to subscribe to our channel for more helpful videos like this one!

Пікірлер: 37
@DipsNohawar
@DipsNohawar Жыл бұрын
Windows Users will get an error when trying to upload the image like ENOENT: no such file or directory .? to fix this use cb(null, new Date().toISOString().replace(/:/g, '-') + file.originalname); in multer.js file you have to add .replace(/:/g,'-')
@himayukhan4659
@himayukhan4659 Жыл бұрын
can you write the full code
@DipsNohawar
@DipsNohawar Жыл бұрын
@@himayukhan4659 const storage = multer.diskStorage({ destination: function (req, file, cb) { cb(null, "public/uploads"); }, filename: function (req, file, cb) { cb(null, new Date().toISOString().replace(/:/g, '-') + file.originalname); }, });
@josecardons6221
@josecardons6221 Жыл бұрын
@@DipsNohawar thanks a lot it worked
@bestchoice7431
@bestchoice7431 Жыл бұрын
This is not the right approach to write code. You have only written the code, no testing, no checking, no debugging. To be a good coder, you must check the code on each block.
@jacobkyule1427
@jacobkyule1427 11 ай бұрын
what is your problem sir?? nobody here said theyre good coder
@aamirrashid4513
@aamirrashid4513 Жыл бұрын
Sir, i am getting undefined req.body in my controller when submitting the formData with avatar in spite of using api config bodyParser set to false.. I just got stuck with this problem plz help me
@codingwithabbas
@codingwithabbas Жыл бұрын
Have you used the multer middleware?
@aamirrashid4513
@aamirrashid4513 Жыл бұрын
@@codingwithabbas no sir i am not using multer middleware. I am direct pushing the formdata in the controller inside the req body just like we did in the react mern stack app. I am also ur udemy student
@gintarase
@gintarase Жыл бұрын
Hi Abbas, thanks for the great video tutorials. In this tutorial, when trying to change the profile image, I get an error - ENOENT: no such file or directory, open 'C:\Users\Gintaras\Desktop|\..........\public\uploads\2023-04-21T06 :36:40.367Z-testimage.png
@codingwithabbas
@codingwithabbas Жыл бұрын
Is the image in the folder?
@gintarase
@gintarase Жыл бұрын
@@codingwithabbas No
@josecardons6221
@josecardons6221 Жыл бұрын
bro I have the same issue have u already solved it?
@himayukhan4659
@himayukhan4659 Жыл бұрын
@codingwithabbas can you upload video how to update profile pic using nextjs 13.4 app router. Facing difficulty, didn't get any solution till now... Put request
@sumanthprabhu11
@sumanthprabhu11 Жыл бұрын
If possible can you try uploading thrice a week
@codingwithabbas
@codingwithabbas Жыл бұрын
The course will be wrapped up soon, I will try to record long videos.
@learning-yi1mh
@learning-yi1mh Жыл бұрын
the session?update nextauth api work properly local level but in production level when user logout profile then update profile
@akhror-oshie
@akhror-oshie Жыл бұрын
Hi Abbas, you're on the right track, keep going, bro!
@codingwithabbas
@codingwithabbas Жыл бұрын
Thank you, I will
@mdabdurrahim2823
@mdabdurrahim2823 Жыл бұрын
when submit, i got this error message: "ENOENT: no such file or directory, open 'C:\\Users\\Abdur Rahim\\Desktop\\ecommerce_tailwin\\public\\uploads\\2023-04-10T08:25:41.713Z-product page gym.png'" success: false
@codingwithabbas
@codingwithabbas Жыл бұрын
Check in the folder do you have the file or not.
@mdabdurrahim2823
@mdabdurrahim2823 Жыл бұрын
@@codingwithabbas no file save in this upload folder
@mdabdurrahim2823
@mdabdurrahim2823 Жыл бұрын
remove new Date() and it's working
@ZackymengPositif
@ZackymengPositif Жыл бұрын
hello sir.. i got same error too, and i change your code and thats work for me.. can i fixed this code?? const storage = multer.diskStorage({ destination: function (req, file, cb) { cb(null, "public/uploads"); }, filename: function (req, file, cb) { cb(null, `${file.originalname}`); }, });
@Hungryforlearning
@Hungryforlearning Жыл бұрын
@@ZackymengPositif thanks boss it's work for me
@talhaSohail-m6f
@talhaSohail-m6f 11 ай бұрын
you are not passing the cookie in headers, then how is it working?
@mimi2362
@mimi2362 Жыл бұрын
nice work. I hope you made video about refresh token
@AfonsoFilipeJr
@AfonsoFilipeJr Жыл бұрын
Thanks again mate. This course is really good.
@JerryDoran-r3e
@JerryDoran-r3e Жыл бұрын
This is probable the best full stack series I have ever seen!!!
@TerryMitchell
@TerryMitchell Жыл бұрын
Awesome, yet again x
@harry4088
@harry4088 Жыл бұрын
How many videos are remaining from now ?
@codingwithabbas
@codingwithabbas Жыл бұрын
Around 12
Next.js 13 Full Stack E-commerce App #19 | Update User Password
12:00
Coding With Abbas
Рет қаралды 1 М.
I Coded a React Next.js E-commerce website using ChatGPT
12:42
Cute
00:16
Oyuncak Avı
Рет қаралды 12 МЛН
Nastya and balloon challenge
00:23
Nastya
Рет қаралды 70 МЛН
How to upload file in backend | Multer
38:21
Chai aur Code
Рет қаралды 114 М.
Next Auth - JWT & Session Callback & How to Update User Session
31:34
Brett Westwood - Software Engineer
Рет қаралды 48 М.
The Right way to Optimize Next.js to Score 100 in lighthouse
23:23
Using Images in Next.js (next/image examples)
9:10
leerob
Рет қаралды 109 М.
The Big Headless CMS Lie (James Mikrut)
18:14
Vercel
Рет қаралды 61 М.
The Worst Thing About Next.js 13
6:37
Josh tried coding
Рет қаралды 34 М.
Uploading Files With Next.js Just Got Way Easier
12:20
Ravi - Perfect Base
Рет қаралды 93 М.
Cute
00:16
Oyuncak Avı
Рет қаралды 12 МЛН