- Issue created by @morvaim
- Merge request !129Issue #3491624: Added the maximum file size to form. → (Merged) 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.
- 🇮🇳India arunsahijpal
Good work @anish.ir,
I've tested the MR on my local and I assure that all the changes have been done and this is also working for Drupal 9.
Attaching ss for reference.
Hence moving it to RTBC.Thanks,
Arun -
nginex →
committed 35d3e990 on 1.4.x authored by
anish.ir →
Issue #3491624: Added the maximum file size to form.
-
nginex →
committed 35d3e990 on 1.4.x authored by
anish.ir →
- Status changed to Fixed
2 months ago 5:09pm 11 February 2025 Automatically closed - issue fixed for 2 weeks with no activity.