Wednesday 28 August 2019

Unhandled Rejection (TypeError): Cannot read property 'data' of undefined

I'm using express-fileupload to upload files but I have a problem that says the property data is undefined this is a property that comes with express-fileupload dependency so I don't know why am I getting this error, the files you should look in the repo are only 2 one is in the routes folder and it's name is movies.js there is all the implementation for uploading files and the other one is in the client folder under src/components and is the uploadImages.jsx component with an error on line 35const { filename, filepath } = res.data;here is the repo with the backend and the frontend, the frontend being the client folder.https://github.com/Ceci007/vidlyplease help and thanks beforehand.

Submitted August 28, 2019 at 01:31PM by CeciPeque

No comments:

Post a Comment