-
Notifications
You must be signed in to change notification settings - Fork 248
1177 enhancement apiv2 importfile fix todos #1874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…iv2-importfile-fix-todos' into 1177-enhancement-apiv2-importfile-fix-todos
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request enhances the API v2 import file functionality by implementing proper TUS (Tus Upload Protocol) file handling with dedicated storage directories and cleaning mechanisms. The changes address TODO items and improve error handling in the file upload process.
Changes:
- Adds TUS directory configuration with dedicated subdirectories for uploads and metadata
- Implements file cleaning functionality to remove expired uploads
- Consolidates multiple cleaning operations into a unified cleaning mechanism
- Enhances error handling for file upload operations and metadata validation
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 16 comments.
Show a summary per file
| File | Description |
|---|---|
| src/inc/defines/global.php | Renames DZaps to DCleaning and consolidates cleaning constants; adds TUS directory constant |
| src/inc/confv2.php | Adds TUS directory path configuration with environment variable support |
| src/inc/startup/setup.php | Adds TUS directory validation and defines APP_NAME based on configuration |
| src/inc/apiv2/helper/importFile.routes.php | Implements TUS protocol endpoints with error handling, adds validation for metadata and file operations |
| src/inc/Util.class.php | Consolidates cleaning operations and adds tusFileCleaning function |
| src/inc/api/APISendProgress.class.php | Replaces separate cleaning calls with unified cleaning function |
| Dockerfile | Adds TUS directory structure with proper permissions |
| docker-entrypoint.sh | Refactors directory creation using array loop for better maintainability |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated 10 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
closes #1177