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 for cases where the uploaded chunk partially overrides content that was already concatenated to the output file #9399

Merged
merged 1 commit into from
May 7, 2020

Conversation

yossipapi
Copy link
Collaborator

@yossipapi yossipapi commented May 6, 2020

This change is Reviewable

@yossipapi yossipapi changed the title Update kUploadTokenMgr.php Fix for cases where the uploaded chunk partially overrides content that was already concatenated to the output file May 6, 2020
@yossipapi yossipapi merged commit ac5167e into Propus-16.2.0 May 7, 2020
{
$targetFileResource = fopen($targetFilePath, 'r+b');
fseek($targetFileResource, 0, SEEK_END);
if($resumeAt == -1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is better to use a const/defined value that will be used as end of file markup.

@yossipapi yossipapi deleted the yossipapi-patch-3 branch October 21, 2020 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants