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

fix chunked upload #430

Merged
merged 2 commits into from
Feb 9, 2024
Merged

Conversation

life-style-de
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets #...

assuming this commit/PR introduced the problem:
07ba2c3
#374

the chunk handling was changed from getting the chunks by path+index to uuid based retrieval.

$this->formBuilderChunkStorage->listContents($uuid) already returns a full list of all chunks and the outer loop iterating additionally over all parts is not needed anymore. leading to all chunks being concatenated to the temp file $totalParts times. this results in a broken file that is original_size * chunk_count in size.

@solverat solverat added this to the 5.0.4 milestone Feb 9, 2024
@solverat solverat added the bug label Feb 9, 2024
@solverat solverat merged commit e09a199 into dachcom-digital:master Feb 9, 2024
2 of 3 checks passed
@solverat
Copy link
Member

solverat commented Feb 9, 2024

@life-style-de, nice! I just tested your PR with a larger file and it works flawless! Thank you very much! :)

@life-style-de life-style-de deleted the feature/chunk branch February 13, 2024 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants