Skip to content

Add image upload utility

Pooja Kumawat requested to merge image-handling into main

Image Handling & Upload Utilities

Role: Build the image upload module for SpotIt so users can attach evidence photos while reporting incidents.

Responsibilities Create and manage the uploads/ folder. Validate uploaded images (JPG, PNG, JPEG). Generate unique filenames using UUID. Save uploaded images securely. Return image paths for database storage. Prevent invalid or corrupted image uploads. Provide reusable utility functions for the frontend. Files Worked On utils.py uploads/ .gitignore Functions Implemented create_upload_folder() save_uploaded_image() validate_image() Deliverables

Image upload utility module

Automatic uploads folder creation

Image validation system

Unique file naming mechanism

Integration-ready functions for report_issue.py

Contribution Summary

Developed the image handling system for SpotIt, enabling secure upload, validation, and storage of incident evidence images while ensuring compatibility with the reporting workflow and database integration.

Edited by Pooja Kumawat

Merge request reports

Loading