Skip to content

Inaccurate translation of file sizes from bytes to megabytes #19

@Loert2

Description

@Loert2

Description

Steps:

  1. Specify the file size 10 MB;
  2. Download a file with the size of 10480000 bytes from the site;
  3. Try to upload a document.

Actual result: Returns an error when the file size is exceeded. The size specified in filepos--file-info-sub is 10.5 MB.

Expected result: Skips the file. Outputs 9.99 or 10 megabytes.

Possible solution for today: maxFileSize equal '10485760'. But this does not fix the file size message.

Library version: "filepond-pluginfile-validatesize": "^2.2.4"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions