# backend/utils.py """ Shared utility functions for the Warracker application """ def allowed_file(filename): """Check if the file extension is allowed""" ALLOWED_EXTENSIONS = {'pdf', 'png', 'jpg', 'jpeg', 'zip', 'rar', 'webp', 'gif'} return '.' in filename and filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS