Open Loert2 opened 3 years ago
Is this because the file size is calculated as 1KB = 1,000 bytes and not 1024?
I can confirm this issue - if I upload a file sized 1.94MB (2035200 bytes) with a maxFileSize value of '2MB', the plugin incorrectly says the file is too big. It works correctly if I set maxFileSize to 2097152 (i.e. 2MB in bytes)
Description
Steps:
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"