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

Changed mb_strlen() to strlen() for file size calculation #16

Open
wants to merge 2 commits into
base: develop
from

Conversation

Projects
None yet
1 participant
@stevecoug

stevecoug commented Oct 11, 2018

The file size was being calculated using multibyte characters rather than bytes, which resulted in rejected uploads due to a hash mismatch.

stevecoug added some commits Oct 11, 2018

Changed mb_strlen() to strlen() for file size calculation
The file size was being calculated incorrectly, since it was done in multibyte characters instead of bytes. This resulted in B2 rejecting uploads due to a hash mismatch.
Merge pull request #1 from stevecoug/file-size-calculation
Changed mb_strlen() to strlen() for file size calculation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment