Hello,|
I have set up coPilot with VScode o make a web page to create users and upload photos. I successfully create users and able to add text for each user. My connection to server is ok in my terminal I have a success message.
But whenever I try to upload a photo I get error and my connection is dropped. Quick note… MOngo console keeps asking to whitelist my IP even though it is already whitelisted. In the end I whitelisted all IP addresses.
These are the errors I get in my browser :
POST http://localhost:3000/uploadGalleryPhoto net::ERR_CONNECTION_RESET
also
Error uploading gallery photos: TypeError: Failed to fetch
at HTMLButtonElement. (script.js:173:17)
Localhost:3000 says
Error uploading gallery photos: Failed to fetch
Also get these in my Vscode terminal
C:\Users\chris\Documents\CoPilotProjects\VscodeCopilot\my-website\node_modules\multer-gridfs-storage\lib\gridfs.js:306
id: f._id,
^
TypeError: Cannot read properties of undefined (reading ‘_id’)
at GridFSBucketWriteStream.emitFile (C:\Users\chris\Documents\CoPilotProjects\VscodeCopilot\my-website\node_modules\multer-gridfs-storage\lib\gridfs.js:306:31)
at GridFSBucketWriteStream.emit (node:events:530:35)
at finish (node:internal/streams/writable:955:10)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
As new user cannot upload my files!!