Skip to content

Conversation

@jessevz
Copy link
Contributor

@jessevz jessevz commented Jan 21, 2026

closes #1177

jessevz added 2 commits January 21, 2026 14:47
Copy link

Copilot AI left a 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.

@jessevz jessevz marked this pull request as draft January 21, 2026 14:47
@jessevz jessevz requested a review from Copilot January 21, 2026 15:45
@jessevz jessevz marked this pull request as ready for review January 21, 2026 15:45
Copy link

Copilot AI left a 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.

Copy link

Copilot AI left a 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.

@jessevz jessevz merged commit 1138cef into dev Jan 22, 2026
3 checks passed
@jessevz jessevz deleted the 1177-enhancement-apiv2-importfile-fix-todos branch January 22, 2026 10:05
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.

2 participants