chai-backend icon indicating copy to clipboard operation
chai-backend copied to clipboard

Avatar Upload failed

Open moayaan1911 opened this issue 9 months ago • 7 comments

Screenshot 2024-04-26 130431 I noticed that in my public folder the images I am sending from postman is NOT GETTING stored, I tried debugging it but couldn't find the solution

moayaan1911 avatar Apr 26 '24 07:04 moayaan1911

https://github.com/moayaan1911/backend-mastery

Here is my repo

moayaan1911 avatar Apr 26 '24 07:04 moayaan1911

Hey, I encountered a similar issue as well. The problem arose due to a configuration error in my Cloudinary configuration setup. After addressing the issue by adjusting my Cloudinary settings, my problem was resolved. I suggest reviewing your Cloudinary configuration to ensure it is properly configured.

pulkitgarg04 avatar Apr 27 '24 02:04 pulkitgarg04

But my images are not getting stores in local public folder either..

moayaan1911 avatar May 01 '24 23:05 moayaan1911

That can be because of fs.unlinkSync(localFilePath) used in Cloudinary.js file, try removing this line from the file.

pulkitgarg04 avatar May 02 '24 13:05 pulkitgarg04