arrow_back Back to Tickets

Ticket #0dea11

completed

Problem

build the cleanup app to test, ability to upload pictures.

Creator

marcus

Priority

3

Urgent

not_urgent

Important

important

Project Name

apps

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

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

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.

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, ... }

Ticket Information

Ticket ID: 691367faeea567b5770dea11
Date Initiated: 11/15/2025, 12:44:00 AM
Date Resolved: 11/21/2025, 10:10:00 AM
Status: completed
Urgent: not_urgent
Important: important
Created: 11/11/2025, 8:44:42 AM
Last Updated: 11/21/2025, 10:10:12 AM