@echo off echo. echo ======================================== echo IMAGE UPLOAD DIAGNOSTICS echo ======================================== echo. cd /d D:\Hosted\familyhub echo 1. Checking if backend is running... echo. curl -s http://localhost:8001/health >nul 2>&1 if %ERRORLEVEL% EQU 0 ( echo ✅ Backend is responding on port 8001 ) else ( echo ❌ Backend NOT responding on port 8001 echo Please start backend: restart_backend.bat ) echo. echo 2. Checking database columns... echo. python check_database_columns.py echo. echo 3. Checking if uploaded files exist... echo. if exist "backend\app\static\uploads\users\*.png" ( echo ✅ User avatar files found: dir /b backend\app\static\uploads\users\*.* 2>nul ) else if exist "backend\app\static\uploads\users\*.jpg" ( echo ✅ User avatar files found: dir /b backend\app\static\uploads\users\*.* 2>nul ) else ( echo ⚠️ No user avatar files found echo Files should be in: backend\app\static\uploads\users\ ) echo. if exist "backend\app\static\uploads\chores\*.png" ( echo ✅ Chore image files found: dir /b backend\app\static\uploads\chores\*.* 2>nul ) else if exist "backend\app\static\uploads\chores\*.jpg" ( echo ✅ Chore image files found: dir /b backend\app\static\uploads\chores\*.* 2>nul ) else ( echo ⚠️ No chore image files found echo Files should be in: backend\app\static\uploads\chores\ ) echo. echo 4. Testing static file access... echo. curl -s -I http://localhost:8001/static/uploads/users/user_1_6ba276ca.png 2>nul | find "200 OK" >nul if %ERRORLEVEL% EQU 0 ( echo ✅ Static files are accessible ) else ( echo ❌ Static files NOT accessible echo Backend might need restart ) echo. echo ======================================== echo NEXT STEPS: echo ======================================== echo. echo If migration not run: echo 1. Run: APPLY_IMAGE_MIGRATION.bat echo. echo If backend not responding: echo 2. Run: restart_backend.bat echo. echo If files not uploading: echo 3. Check browser console for errors echo 4. Check backend logs echo. echo ======================================== pause