doufangxie0203 2014-05-02 07: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 08: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条)
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部