dongxia19772008 2014-09-27 08:16
浏览 42
已采纳

在openshift php应用程序中减少upload_max_filesize

I just updated upload_max_filesize to 2M and post_max_size to 4M in php.ini at /var/lib/openshift/xxx---app-id---xxx/php/configuration/etc/php.ini in my scalable PHP app and restarted the cartridge:

  $ rhc cartridge restart php -a "myapp"

And then the app

  $ rhc app restart -a "myapp"

But unfortunately, the upload size still remains the default 200 MB.

Please tell me where else to modify and what else to do to reduce maximum file upload size because 200 MB size is too large and dangerous to be public in my app.

  • 写回答

1条回答 默认 最新

  • dream6120 2014-09-30 12:58
    关注

    Have you tried adding these into your .htaccess?

    php_value upload_max_filesize 2M
    php_value post_max_size 4M
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 plotBAPC画图出错
  • ¥30 关于#opencv#的问题:使用大疆无人机拍摄水稻田间图像,拼接成tif图片,用什么方法可以识别并框选出水稻作物行
  • ¥15 Python卡尔曼滤波融合
  • ¥20 iOS绕地区网络检测
  • ¥15 python验证码滑块图像识别
  • ¥15 根据背景及设计要求撰写设计报告
  • ¥20 能提供一下思路或者代码吗
  • ¥15 用twincat控制!
  • ¥15 请问一下这个运行结果是怎么来的
  • ¥15 单通道放大电路的工作原理