File system & Handler
This module manages file operations within the Plantask system, including upload, deletion, renaming, and batch zipping. It integrates with the database and activity log to track file-related actions.
π FILE MANAGEMENT WORKFLOW (Pyramid + SQLAlchemy)
1. π€ File Upload (Single)
βΆ Entry Point:
π Flow:
2. π€ File Upload (Multiple)
βΆ Entry Point:
π Flow:
3. π File Display
βΆ Entry Point:
π Flow:
4. β¬ File Download (GET or POST)
βΆ Option A:
βΆ Option B:
π Flow (Both):
5. β File Deletion (Soft Delete)
βΆ Entry Point:
π Flow:
π§ SERVICE LOGIC: FileUploadService
FileUploadServiceβ
save_file_to_disk(file_storage)
save_file_to_disk(file_storage)β
handle_upload(...)
handle_upload(...)β
delete_file(...)
delete_file(...)β
download_file(file_id)
download_file(file_id)Last updated