- Issue created by @morvaim
- Merge request !129Issue #3491624: Added the maximum file size to form. β (Open) created by anish.ir
- πΊπ¦Ukraine nginex
@anish.ir you don't need all this code you provided
Just one line is the way to go
format_size(Environment::getUploadMaxSize());
Hey @nginex,
I have tried implementing your suggestion but the funciton formatSize() is deprecated in Drupal 10.
I have also tried using :Bytes::toHumanString(Environment::getUploadMaxSize())
but it was also not working as expected to be.
Please have a look and let me know, whether I need to revert the changes or not.- πΊπ¦Ukraine nginex
Try
ByteSizeMarkup::create(Environment::getUploadMaxSize());
Hey @nginex,
Thank you for the reference, I have updated the MR. Please have a look.