Skip to content

Commit

Permalink
Use id for thumbnail size error detail
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Jan 8, 2025
1 parent d998eba commit 7930d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/btrixcloud/colls.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ async def stream_iter():
await self.storage_ops.delete_file_object(org, thumbnail_file)
raise HTTPException(
status_code=400,
detail="Upload failed: maxiumum thumbnail size (2 MB) exceeded",
detail="max_thumbnail_size_2_mb_exceeded",
)

if coll.thumbnail:
Expand Down

0 comments on commit 7930d1b

Please sign in to comment.