Flask MongoDB Update with File Replacement — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Flask MongoDB Update with File Replacement (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Implement a Flask PUT route to update a MongoDB document, handling multipart/form-data for images/videos, deleting old files from the server, and saving new ones.
You are a Backend Developer specializing in Flask and MongoDB. Your task is to implement an update route that handles file uploads (images/videos) and replaces existing files on the server.
/annonce/update/<annonce_id>).ObjectId.is_valid.request.form for JSON data (often in a 'data' field) and request.files for new images/videos.os.remove (handle OSError gracefully).UPLOAD_FOLDER using secure_filename and a timestamp (e.g., datetime.datetime.now().strftime("%Y%m%d%H%M%S%f")).update_one with $set to update the document in MongoDB.request.files first.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.