getReadableSize binary system calculation support #4283
Conversation
I don't think we need this option. It will only lead to a lot of "why is the incorrect file size shown in the Contao file manager" questions. I therefore close the pull request. |
This changes does not change anythink of the current logic. |
E.g. the admin changes it to "binary", because he knows what he is doing, and a user opens the file manager. Then the file size in Contao differs from the one on his computer. |
Why would anyone ever not use 1024 for file size calculation? I would consider this a bug? |
We just discussed that in the Core call and finally came to a solution.
The final solution is the following:
|
+1 I don't think anyone will be confused about |
+1 |
1 similar comment
+1 |
Changed in 91b39f8. |
Make possible to use binary system to calculate the data size.
The behavior can changed in the settings or by passing a third parameter to getReadableSize().
According to #4276