Spaces:
Sleeping
Sleeping
Anish commited on
Commit ·
25bbf6f
1
Parent(s): e000e33
Minor changes to message of file_routes, to be more informative.
Browse files
backend/app/api/file_routes.py
CHANGED
|
@@ -96,9 +96,9 @@ async def upload_file(
|
|
| 96 |
is_video = file.content_type.startswith("video/")
|
| 97 |
|
| 98 |
if is_video and videos_count >= 1:
|
| 99 |
-
raise HTTPException(status_code=429, detail="Guest limit reached: 1 Video per day. Please login.")
|
| 100 |
elif not is_video and images_count >= 5:
|
| 101 |
-
raise HTTPException(status_code=429, detail="Guest limit reached: 5 Images per day. Please login.")
|
| 102 |
|
| 103 |
user_id = current_user.id if current_user else None
|
| 104 |
|
|
|
|
| 96 |
is_video = file.content_type.startswith("video/")
|
| 97 |
|
| 98 |
if is_video and videos_count >= 1:
|
| 99 |
+
raise HTTPException(status_code=429, detail="Guest limit reached: 1 Video per day. Please login to enjoy free services.")
|
| 100 |
elif not is_video and images_count >= 5:
|
| 101 |
+
raise HTTPException(status_code=429, detail="Guest limit reached: 5 Images per day. Please login to enjoy free services.")
|
| 102 |
|
| 103 |
user_id = current_user.id if current_user else None
|
| 104 |
|