Skip to content

Harden upload folder handling - #1

Open
kriptoburak wants to merge 1 commit into
oksana-vtk:mainfrom
kriptoburak:codex/harden-delete-upload-paths-0802
Open

Harden upload folder handling#1
kriptoburak wants to merge 1 commit into
oksana-vtk:mainfrom
kriptoburak:codex/harden-delete-upload-paths-0802

Conversation

@kriptoburak

Copy link
Copy Markdown

Summary

  • Default UPLOAD_FOLDER to uploads when the environment variable is missing.
  • Validate delete payloads before reading fileName.
  • Reject delete paths that escape the upload folder.
  • Add focused Flask API regression tests.

Validation

  • python -m pytest tests/test_file_api.py
  • python -m py_compile main.py tests/test_file_api.py
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant