You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is created to test the functionality of the Proof of Impact (PoI) submission API implemented in a previous issue. The goal is to validate that users can successfully submit before-and-after cleanup photos, with proper file validation, metadata extraction, and database storage.
Tasks
✅ Test PoI Submission Endpoint
Send a POST /api/poi/submit request with valid image files.
Ensure the API correctly handles multipart file uploads.
✅ File Validation
Confirm only JPEG, JPG, HEIC formats are accepted.
Ensure images exceeding 10 MB are rejected.
Verify that exactly two images (before & after) are required per submission.
✅ Metadata Extraction & Storage
Check that geotags (latitude, longitude) and timestamps are correctly extracted.
Confirm metadata is stored without being used for validation.
Verify that location data is saved for potential impact tracking.
✅ Database Storage
Ensure the following details are correctly stored:
Description
This issue is created to test the functionality of the Proof of Impact (PoI) submission API implemented in a previous issue. The goal is to validate that users can successfully submit before-and-after cleanup photos, with proper file validation, metadata extraction, and database storage.
Tasks
✅ Test PoI Submission Endpoint
POST /api/poi/submitrequest with valid image files.✅ File Validation
✅ Metadata Extraction & Storage
✅ Database Storage
✅ Response & Error Handling
Expected Outcome
The API should properly validate and process PoI submissions, store relevant data, and handle errors gracefully.