MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / _validate_chat_voice_upload

Function _validate_chat_voice_upload

Scripts/ButSystem.py:17297–17305  ·  view source on GitHub ↗

Validate a voice note upload and return normalized MIME.

(file_storage)

Source from the content-addressed store, hash-verified

17295 mimetype=mime,
17296 as_attachment=True,
17297 download_name=filename,
17298 conditional=True,
17299 max_age=0,
17300 )
17301 except Exception:
17302 abort(404)
17303
17304 resp.headers["Cache-Control"] = "no-store"
17305 return resp
17306
17307@app.route("/profiler/att/<int:aid>/delete", methods=["POST"])
17308@login_required

Callers 8

_dm_store_voiceFunction · 0.70
_dm_store_voice_txFunction · 0.70
dm_sendFunction · 0.70
_group_store_voiceFunction · 0.70
_group_store_voice_txFunction · 0.70
group_sendFunction · 0.70
discussion_sendFunction · 0.70

Calls 2

_upload_filename_mimeFunction · 0.70

Tested by

no test coverage detected