mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 03:47:49 +01:00
👀 Fix Common users cannot upload files
💄Fix format 💄Fix format i18 ⭐ Feat paste upload files and make restrictions ⭐ Feat paste upload files and make restrictions
This commit is contained in:
@@ -577,6 +577,14 @@ async def get_query_settings(user=Depends(get_admin_user)):
|
||||
}
|
||||
|
||||
|
||||
@app.get("/file/limit/settings")
|
||||
async def get_query_settings(user=Depends(get_verified_user)):
|
||||
return {
|
||||
"max_file_size": app.state.config.MAX_FILE_SIZE,
|
||||
"max_file_count": app.state.config.MAX_FILE_COUNT,
|
||||
}
|
||||
|
||||
|
||||
class QuerySettingsForm(BaseModel):
|
||||
k: Optional[int] = None
|
||||
r: Optional[float] = None
|
||||
|
||||
Reference in New Issue
Block a user