Description
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!