Increasing the maximum post size

后端 未结 9 1978
旧巷少年郎
旧巷少年郎 2020-11-22 04:39

There is a lot of data being submitted no file uploads and the $_SERVER[\'CONTENT_LENGTH\'] is being exceeded. Can this be increased?

相关标签:
9条回答
  • 2020-11-22 05:26

    We can Increasing the maximum limit using .htaccess file.

    php_value session.gc_maxlifetime 10800
    php_value max_input_time         10800
    php_value max_execution_time     10800
    php_value upload_max_filesize    110M
    php_value post_max_size          120M
    

    If sometimes other way are not working, this way is working perfect.

    0 讨论(0)
  • 2020-11-22 05:26

    Try

    LimitRequestBody 1024000000
    
    0 讨论(0)
  • 2020-11-22 05:27

    I had been facing similar problem in downloading big files this works fine for me now:

    safe_mode = off
    max_input_time = 9000
    memory_limit = 1073741824
    post_max_size = 1073741824
    file_uploads = On
    upload_max_filesize = 1073741824
    max_file_uploads = 100
    allow_url_fopen = On
    

    Hope this helps.

    0 讨论(0)
  • 2020-11-22 05:28

    You can specify both max post size and max file size limit in php.ini

    post_max_size = 64M
    upload_max_filesize = 64M
    
    0 讨论(0)
  • 2020-11-22 05:31

    You can do this with .htaccess:

    php_value upload_max_filesize 20M
    php_value post_max_size 20M
    
    0 讨论(0)
  • 2020-11-22 05:32
    ; Maximum allowed size for uploaded files.
    upload_max_filesize = 40M
    
    ; Must be greater than or equal to upload_max_filesize
    post_max_size = 40M
    
    0 讨论(0)
提交回复
热议问题