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

Bug: Reassembled File is Deleted with Temporary Directory (Backend PHP.md suggestion) #629

Open
RavigaBage opened this issue Oct 9, 2024 · 0 comments

Comments

@RavigaBage
Copy link

Description: I noticed an issue with the (suggestion) file upload script where the reassembled file is being deleted along with the temporary directory that holds the chunk files. This happens because the final file is stored in the same directory as the chunks, and the entire directory is deleted after the file is reassembled.

Steps to Reproduce:

Upload a file in chunks.
Check the temporary directory for the reassembled file.
Notice that after reassembling, the directory and the final file are both deleted.
Proposed Solution: To resolve this, I suggest moving the reassembled file to a separate target directory (e.g., uploads/) instead of storing it in the temporary directory.
For instance, declaring a target dir. and storing the reassembled file on the target dir. rather than the temp dir.

Note: If this behavior is intentional or not an issue in your context, feel free to ignore this report. I just wanted to share my findings in case this could help improve the project.

Thank you for your work on this project!

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

No branches or pull requests

1 participant