All questions about EDocman extension

Issue with “Maximum Upload Size” Display in Frontend Upload Form

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
1 day 2 hours ago #175874 by hide10
Hello,

I believe the value set in Upload Configuration: Max Upload File Size should be reflected in the “Maximum upload size” displayed on the frontend upload form.
However, the current behavior varies depending on the site: sometimes it shows the value from the server’s Default INI Setting, and other times it simply displays “2MB.”

This seems to be a bug.
Could you please check the behavior?

Thanks

P.S. My system information:
- Joomla 5.4
- EDocman 3.1
- PHP 8.2.20
-  MySQL 8.0.42
- Apache

Please Log in or Create an account to join the conversation.

  • Dang Thuc Dam
  • Away
  • Administrator
  • Administrator
More
22 hours 59 minutes ago #175882 by Dang Thuc Dam
Hi,
The line showing "Maximum Upload file size" is a core feature of Joomla. However, you can handle it as follows:
1. Open the file: root/language/en-GB/en-GB.com_edocman.ini
2. Add this line:
JGLOBAL_MAXIMUM_UPLOAD_SIZE_LIMIT=""
You can enter a custom translation that matches your upload limit, or simply leave it empty to hide this line.
Best regards,
Dam

Please Log in or Create an account to join the conversation.

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
22 hours 44 minutes ago #175884 by hide10
Thank you for the explanation.

Just to clarify my original point:
The issue I reported is not about the text string itself, but about the inconsistency between the value set in “Max Upload File Size” and the value displayed as “Maximum upload size” on the frontend upload form.

In my understanding, the frontend display should normally reflect the configuration value set in EDocman. However, depending on the site, the displayed value is sometimes taken from the server’s default INI setting or fixed at 2MB.
This inconsistency made me think that there might be an issue in the logic that determines which value is shown.

Could you please check this behavior on your side?

Thank you for looking into this.

Please Log in or Create an account to join the conversation.

  • Dang Thuc Dam
  • Away
  • Administrator
  • Administrator
More
22 hours 36 minutes ago #175885 by Dang Thuc Dam
Hi,
The file responsible for displaying the upload size is created by Joomla at this location: layouts/joomla/form/field/file.php. Joomla takes the value from the PHP ini settings, which is why you see this inconsistency.
Additionally, Joomla does not allow overriding the layout for this file, so the only solution is to override the text in the language file.
Thanks
Dam

Please Log in or Create an account to join the conversation.

Moderators: Dang Thuc Dam