Skip to content
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

Implement Error Handling and Cleanup for Partial Uploads #7

Closed
ahmadnasriya opened this issue Aug 20, 2024 · 0 comments · Fixed by #8
Closed

Implement Error Handling and Cleanup for Partial Uploads #7

ahmadnasriya opened this issue Aug 20, 2024 · 0 comments · Fixed by #8
Assignees
Labels
bug Something isn't working cleanup Tasks related to code or resource cleanup. enhancement New feature or request error handling Issues or improvements related to error handling mechanisms. priority Indicates issues that should be prioritized.

Comments

@ahmadnasriya
Copy link
Member

During the file upload process, errors such as network interruptions or server issues can result in partially uploaded files being left on the server. These files should be automatically cleaned up to prevent clutter and potential storage issues.

Task:

Implement robust error handling and cleanup mechanisms to ensure that partially uploaded files are properly handled and removed if necessary.

Steps to Implement:

  1. Modify the request handler to detect errors during the upload process.
  2. Ensure that any partially uploaded files are deleted if an error occurs before the upload completes.
  3. Implement and test scenarios where uploads are interrupted or fail to verify that cleanup works as expected.

Expected Outcome:

The server should automatically clean up any partially uploaded files, preventing storage clutter and ensuring that only fully uploaded files are retained.

@ahmadnasriya ahmadnasriya added bug Something isn't working enhancement New feature or request error handling Issues or improvements related to error handling mechanisms. cleanup Tasks related to code or resource cleanup. priority Indicates issues that should be prioritized. labels Aug 20, 2024
@ahmadnasriya ahmadnasriya self-assigned this Aug 20, 2024
ahmadnasriya added a commit that referenced this issue Aug 24, 2024
@nasriyasoftware nasriyasoftware locked as resolved and limited conversation to collaborators Aug 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working cleanup Tasks related to code or resource cleanup. enhancement New feature or request error handling Issues or improvements related to error handling mechanisms. priority Indicates issues that should be prioritized.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant