doufangxie0203 2014-05-02 15:53
浏览 75
已采纳

Debian Php Max文件上传

First off I'm new to Linux.
I've installed Apache, Mysql and PHP on to a raspberry pi(Debian, not raspbian, so all command driven), and i've written a file upload php script, which works for small files, but I can't get it to upload a 85M file, it doesn't come back with any warnings or errors(I have taken the script size limitations out).

I have tried changing the max_upload, etc in the /etc/php5/cli/php.ini and /etc/php5/apache2/php.ini and nothing makes a difference, am I missing something or is there a limitation on the pi?

The point of this website is to allow large uploads directly onto the company network as have shared the upload directory.
Any help would be greatly appreciated

  • 写回答

2条回答 默认 最新

  • doudang9147 2014-05-02 16:19
    关注

    You probably did everything right, but didn't do enough. To my knowledge, there are a few things to change in a config:

    # Max file size:
    upload_max_filesize = some value
    
    
    # But let's not forget that files are a part of POST request, so let's set its limits as well:
    post_max_size = some value
    

    Maybe this will help

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥100 有人会搭建GPT-J-6B框架吗?有偿
  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名