All questions about EDocman extension

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

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 weeks 5 days 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.

More
3 weeks 4 days 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
3 weeks 4 days 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.

More
3 weeks 4 days 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.

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 weeks 3 days ago #175913 by hide10
Hi Dam,

Thank you for the explanation.

I understand your point about Joomla’s core file field layout.
However, the issue I reported is not about the Joomla layout itself, but about the inconsistency between EDocman’s own “Max Upload File Size” configuration and the value displayed on the frontend upload form.

Other extensions (for example, Convert Forms) are able to display a custom upload size that matches their configuration, so it seems technically possible to provide a consistent value independent of Joomla’s default layout.

If the displayed value cannot reliably match EDocman’s configuration, then hiding the line may be a better option than showing an incorrect value to users.
However, to enhance the value of EDocman, I believe it would be much more beneficial to display the correct value based on the backend configuration rather than simply hiding the line.


Could you please consider this point?


Thanks

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

More
3 weeks 3 days ago - 3 weeks 2 days ago #175920 by Dang Thuc Dam
Hi,
We have found a better solution for this issue and will include it in the next release of Edocman. Thank you for your feedback and patience.
Dam
Last edit: 3 weeks 2 days ago by Dang Thuc Dam.

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

Moderators: Dang Thuc Dam