feat: enhance file uploader with size validation and error handling

This commit is contained in:
Your Name
2026-03-22 15:12:19 +02:00
parent d8a51d8494
commit 70d7f09110
5 changed files with 84 additions and 5 deletions

View File

@@ -669,7 +669,8 @@ def has_task_access(user_id: int, source: str, task_id: str) -> bool:
"""
SELECT 1
FROM usage_events
WHERE user_id = ? AND source = ? AND task_id = ? AND event_type = 'accepted'
WHERE user_id = ? AND source = ? AND task_id = ?
AND event_type IN ('accepted', 'download_alias')
LIMIT 1
""",
(user_id, source, task_id),