Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to post products #10

Open
PriyaJainDev opened this issue Jun 30, 2018 · 8 comments
Open

Unable to post products #10

PriyaJainDev opened this issue Jun 30, 2018 · 8 comments

Comments

@PriyaJainDev
Copy link

I am following the same procedures as per the source code but still not able to post the data to mlab. Getting the following error in postman:
{ "error": { "message": "ENOENT: no such file or directory, open 'C:\\Users\\Priya\\Desktop\\sample\\node-restful-api-tutorial-13-controllers\\uploads\\2018-06-30T15:31:36.292ZCocker-Spaniel-Puppies-For-Sale-600x600.jpg'" } }

I have tried multiple times the same code but all useless. Kindly help out as soon as possible as it is urgent.

@parammittal16
Copy link

@priya0607jain have you made an empty folder named 'uploads' to the path C:\Users\Priya\Desktop\sample\node-restful-api-tutorial-13-controllers\uploads before making any post or get request

@PriyaJainDev
Copy link
Author

@parammittal16 yes I already have. Still could not solve it.

@parammittal16
Copy link

Or there could be because of the double \
Which makes the url invalid !

@SamuelCarmona83
Copy link

i have a code that post images served in heroku and conected to AltasDB an upload well but after few minutes i cant no longer access to the image posted before.

@PriyaJainDev
Copy link
Author

I have not altered any configuration in the Maximillian's code. I am following the same code but still not able to post images. Again and again the error of 'path not define' or 'no ENOENT directory exists' type.

@parammittal16
Copy link

Are u working on Linux or Mac ?

@PriyaJainDev
Copy link
Author

PriyaJainDev commented Jul 14, 2018

Neither of them. Windows

@ghost
Copy link

ghost commented Aug 18, 2018

@priya0607jain
change to this:
new Date().toISOString().replace(/:/g, '-')
in your producs.js
windows dont accept ";"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants