someone plss tell me...... if we use multer then image is getting uploaded on local storage then upon deploying application on server how it can be accessible as image is not getting uploaded to mongodb?
after deploying there is no use saving images on local computer so you need to uplaod images to cloud service like cloudinary(basic is free,otherwise you need to purchase for render etc) and save the cloudinary image url to mongodb
Umm not really though ,I think you haven't included the directory of your image file in your index.js of your backend folder to serve those image you have saved locally
bhai jab m multer ka single upload wala middleware laga rha hu toh postman s api hit krte waqt "Unexpected end of form" yeh error aa rha h aur terminate ho jaa rha h aake wale register route pr nhi jaaa rha. Please help
I am also getting same problem . Localhost m post request chal rhi h but live krne ke baad unknown api key error aa rhi h aur api key ekdum shi daal rkhi h
Hello Bhayia, Your course is really helping to learn new concepts in development. Thankyou soo much bhayia for this amazing content
I am getting request timeout error while uploading on cloudinary,if someone got the solution for this problem then please let me know
someone plss tell me...... if we use multer then image is getting uploaded on local storage then upon deploying application on server how it can be accessible as image is not getting uploaded to mongodb?
It is because when you deploy,like vercel,they dont want anything to be on your server,they want it to be on cloud
The serverless tech work this way only
after deploying there is no use saving images on local computer so you need to uplaod images to cloud service like cloudinary(basic is free,otherwise you need to purchase for render etc) and save the cloudinary image url to mongodb
Umm not really though ,I think you haven't included the directory of your image file in your index.js of your backend folder to serve those image you have saved locally
bro 100mb ke upar upload nhi horha video
bhai jab m multer ka single upload wala middleware laga rha hu toh postman s api hit krte waqt "Unexpected end of form" yeh error aa rha h aur terminate ho jaa rha h aake wale register route pr nhi jaaa rha. Please help
where u have used multer?
getting internal server error while uploading file on Cloudinary.
in getDataUri function, return file.buffer in place of file.content.
@@anshulsingla9361 i am getting error failed to upload file on cloudinary(after doing console logs)
I am also getting same problem . Localhost m post request chal rhi h but live krne ke baad unknown api key error aa rhi h aur api key ekdum shi daal rkhi h
Anyone pls help
@SachinKumar-nz5bn how you solved this problem??
😍😍😍
please provide source code
yrr iss video ko maine dekh dekh k kr to lia magar iss baar samajh kuch nhi ayaa
Same here 😅
Kyu kya hua basic se sikho bhai mere ko to sb smj aaya