简体   繁体   English

无法在服务器上上传文件-错误是警告:超过42669632字节的POST内容长度

[英]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.

相关问题 文件上载警告发布内容的字节长度超出限制 - File Upload Warning post content-length of bytes exceeds the limit 处理得很好“POST内容 - 字节长度超过”警告限制 - Handle nicely “POST Content-Length of bytes exceeds the limit of” warning PHP 警告:8412174 字节的 POST Content-Length 超出了 Unknow 中 8388608 字节的限制 - PHP Warning: POST Content-Length of 8412174 bytes exceeds the limit of 8388608 bytes in Unknow 警告:11394639字节的POST内容长度超过了8388608字节的限制 - Warning: POST Content-Length of 11394639 bytes exceeds the limit of 8388608 bytes 警告:POST Content-Length的25447804字节超出了第0行上Unknown中的8388608字节的限制 - Warning: POST Content-Length of 25447804 bytes exceeds the limit of 8388608 bytes in Unknown on line 0 PHP 警告:未知:68 字节的 POST 内容长度超过第 0 行未知中 10 字节的限制, - PHP Warning: Unknown: POST Content-Length of 68 bytes exceeds the limit of 10 bytes in Unknown on line 0, 警告:90612004 字节的 POST Content-Length 超出了第 0 行未知中 8388608 字节的限制 - Warning: POST Content-Length of 90612004 bytes exceeds the limit of 8388608 bytes in Unknown on line 0 如何避免:警告:POST内容长度47820076字节超过了第0行的Unknown中的8388608字节限制 - How to avoid: Warning: POST Content-Length of 47820076 bytes exceeds the limit of 8388608 bytes in Unknown on line 0 PHP 警告:8978294 字节的 POST 内容长度超出第 0 行未知中 8388608 字节的限制 - PHP Warning: POST Content-Length of 8978294 bytes exceeds the limit of 8388608 bytes in Unknown on line 0 PHP警告:53160843字节的POST内容长度超过了行0上“未知”中的33554432字节的限制 - PHP Warning: POST Content-Length of 53160843 bytes exceeds the limit of 33554432 bytes in Unknown on line 0
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM