[英]unable to upload a file on Server - error is Warning: POST Content-Length of 42669632 bytes exceeds
am trying with below code php.ini file is 我正在尝试下面的代码php.ini文件是
allow_url_fopen = Off
allow_url_include = Off
asp_tags = Off
display_errors = On
enable_dl = Off
file_uploads = On
max_execution_time = 300
max_input_vars = 1000
session.gc_maxlifetime = 1440
session.save_path = "/var/cpanel/php/sessions/ea-php56"
memory_limit = 256M
upload_max_size = 64M
post_max_size = 64M
upload_max_filesize = 64M
max_input_time = 1000
and htaccess file is: htaccess文件是:
php_value memory_limit 256M
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 1000
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
but still file is not uploading on server. 但文件仍未在服务器上上传。 warning is
警告是
Warning: POST Content-Length of 42669632 bytes exceeds the limit of 16777216 bytes in Unknown on line 0
警告:42669632字节的POST内容长度超过了0行上“未知”中的16777216字节的限制
It looks like it's limited to 16MB = 16777216 bytes. 看起来它限制为16MB = 16777216字节。
Was 16MB the upload limit before you changed the settings? 更改设置之前上传限制为16MB吗?
Have you tried restarting the server? 您是否尝试过重启服务器?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.