Fixed
- 🔒 Upload path traversal —
/files/uploadnow resolves thedirectoryparameter throughfs.resolve_path()and sanitizes the uploaded filename withos.path.basename(), preventing path traversal attacks (e.g.../../etc/passwd) that could escape the user's home directory in multi-user mode. The composed path is normalized withos.path.normpath()and validated by_check_pathbefore writing. All other file endpoints already had these protections.