Description
The send_file_and_cleanup() function currently handles multiple input types and cleanup logic within a single method. Refactoring the implementation into smaller helper functions will improve readability, maintainability, and future extensibility.
File: utils/file_utils.py
Tasks
- Split handling of file paths, byte streams, and file-like objects into helper functions
- Reduce nested conditional logic
- Remove duplicated response handling code
- Preserve existing functionality and API compatibility
- Add or update inline documentation where appropriate
Acceptance Criteria
Please assign this issue to me under GSSoC.
Description
The
send_file_and_cleanup()function currently handles multiple input types and cleanup logic within a single method. Refactoring the implementation into smaller helper functions will improve readability, maintainability, and future extensibility.File:
utils/file_utils.pyTasks
Acceptance Criteria
Please assign this issue to me under GSSoC.