4GB HTTP File Uploads Using jQuery-File-Upload, Apache and PHP

后端 未结 3 491
执笔经年
执笔经年 2020-12-28 09:29

This problem seems directly related to the infamous 2GB limit and I\'m not sure at this atge if its a 32bit PHP issue. I\'ve seen the comments related to HTTP not being desi

3条回答
  •  梦谈多话
    2020-12-28 10:14

    If you have access to the apache virtualhost config you can also change these settings for a specific upload URL (you can also add this to your .htaccess file):

    With this code:

    
        php_value max_execution_time 0
        php_value upload_max_filesize 0
        php_value post_max_size 4939212390
        php_value memory_limit 4G
        LimitRequestBody 0
    
    

    The LocationMatch directives allow you to choose the url (you can use reg exp)

提交回复
热议问题