#2098·dropzone

Uniform Filesize calculation

Author: linktoahrefCreated Feb 28, 2022Updated Dec 28, 2023

Describe the bug Calculated file size is shown different in the preview label and error tooltip.

To Reproduce Steps to reproduce the behavior: Upload a file greater than the maxFilesize property.

Expected behavior The size shown should be same in the error tooltip and preview element.

Screenshots If applicable, add screenshots to help explain your problem. mismatch

Browser / OS:

  • OS & Device: macOS Monterey 12.2.1
  • Browser Brave 1.35.104 Chromium 98.0.4758.109
  • Version Dropzone 5.9.2

Additional context I tried changing filesizeBase: 1024 but still there was difference.

Referred Links:

Question: How to have uniform file size calculation? (Either in MiB or MB)