dreamer2014520 2017-06-29 14:20 采纳率: 0%
浏览 53

文件类型字段显示文件字段下方的最大上载大小。 需要在joomla中删除它

I have created a field Mobile numbers upload file field in our joomla component. But it shows Maximum upload size value below the field while shows it in the view.

But this issue is only appear in joomla 3.7.2 before i used this same component in joomla 3.6.5 the field shows without that Max Upload size value. And this value is taken from Memory_size value in PHP.ini that is 100MB. But this value is too much for our process.

So that we don't want to show that value with that field. How can achieve this? i attached the screen shot of the field

  • 写回答

1条回答 默认 最新

  • doulan4939 2017-11-26 19:17
    关注

    Proceed step by step with the simple solution below:

    1. In your template creates the directory structure: your_template/html/layouts/joomla/form/field/
    2. Copy file layouts/joomla/form/field/file.php and paste in the your template in the final directory created
    3. Edit this file and comment or delete last line:

    <?php echo JText::sprintf('JGLOBAL_MAXIMUM_UPLOAD_SIZE_LIMIT', $maxSize); ?>

    Work fine in Joomla 3.8.2

    评论

报告相同问题?

悬赏问题

  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看