This commit is contained in:
huchenlei 2024-10-31 17:25:23 -04:00
parent b4c650b56e
commit 6557cc9b1b
2 changed files with 3 additions and 1 deletions

View File

@ -234,6 +234,8 @@ class UserManager():
- file: The target file path (URL encoded if necessary).
Returns:
- 400: If 'file' parameter is missing.
- 403: If the requested path is not allowed.
- 409: If overwrite=false and the file already exists.
- 200: JSON response with either:
- Full file information (if full_info=true)

View File

@ -14,7 +14,7 @@ def user_manager(tmp_path):
um = UserManager()
um.get_request_user_filepath = lambda req, file, **kwargs: os.path.join(
tmp_path, file
)
) if file else tmp_path
return um