arrow_back
Back to Tickets
Edit Trouble Ticket
Update the ticket information below
Date Initiated
*
Status
*
Open
Pending
Completed
Terminated
Creator
*
marcus
Priority
*
3
Urgent
Select urgency...
Urgent
Not Urgent
Important
Select importance...
Important
Not Important
Project Name
*
apps
Problem
*
build the cleanup app to test, ability to upload pictures.
Question
Root Cause
check that the models/schema is correct with the database and what is coming from ejs form. check that the listening ports are correctly matching the nginx site-avaiabled /default
Notes
Strategy
Build the clean up app and take before and after pictures first pict upload by itself. then a put requests to upload a second picture
Helpful People
Helpful Links
Diagram
Previous Steps
filter only for pictures when selectin photos.. resolved data was not going to the correct database. problem and description are the same info.
Next Steps
need to be able to use a put route to update a picture. and allow two picture to be updated independently of each other. remove the current user intface that requires two images to be uploaded.
Solution
Insight
pointing to the correct database. this points to the node-tuts db. dbURI='mongodb+srv://qNcNLTA8etB5wSRr:test1234@nodetuts.8pqhx.mongodb.net/node-tuts? this points to the cleanup db. dbURI='mongodb+srv://qNcNLTA8etB5wSRr:test1234@nodetuts.8pqhx.mongodb.net/cleanup? _-_______________ important to test the upload with a curl command before trying to complicate things and upload pictures. #!/bin/bash echo "starting my script" # Health is GET curl -v http://localhost/healthz # expect: ok echo " start upload testing" # Upload is POST multipart; NOTE the @ curl -F "image=@coffee.jpg" -F "title=Test" http://localhost/upload # expect JSON: { "ok": true, ... }
Date Resolved
save
Update Ticket
Cancel