更新后的服务器不发送/接受多个文件上传?

发布于 2024-12-04 01:38:48 字数 508 浏览 2 评论 0原文

我有两台服务器,服务器A和服务器B。服务器A上的表单通过XMLHttpRequest向服务器B提交数据。 Apache 的设置允许将数据从一台服务器发送到另一台服务器,从而避免跨源问题。

该表单上传文件,旨在能够一次发送多个文件。这对于 CentOS 5.3 的单个和多个文件上传效果很好。

使用“yum list update”和“yum update”将操作系统更新到CentOS 5.6后,多个文件上传停止工作。第一个文件将被发送到服务器 B,所有其他隐藏输入数据都不会发送,并且文件信息数组 $_FILES[] 的 count() 为零。单个文件上传工作正常,$_FILES 已成功创建,并且其他隐藏的输入数据已发送。

什么可能导致这个问题?是否有可能在升级过程中更改了某些设置? (安装后服务器重新启动。)

提前致谢! tundoopani

编辑:我不认为这是由 centos 升级引起的。该问题现在出现在 5.3 和 5.6 上。 :( 看来数据是分片发送的,导致多个请求?

I have two servers, server A and server B. A form on server A submits data to server B via XMLHttpRequest. Apache is set up to allow data to be sent from one server to the other, avoiding the cross-origin problem.

The form uploads files and is meant to be able to send multiple files at once. This worked fine with single and multiple file uploads with CentOS 5.3.

After using "yum list updates" and "yum update" to update the OS to CentOS 5.6, multiple files uploads stop working. The first file would be sent to server B, all other hidden input data was not sent, and the files information array $_FILES[] had a count() of zero. Single file uploads worked properly, $_FILES was created successfully, and other hidden input data was sent.

What could be causing this problem? Is it possible that some settings were changed during the upgrade? (The server was rebooted after the installation.)

Thanks in advance!
tundoopani

EDIT: I don't think this is caused by the centos upgrade. The problem now occurs on 5.3 and 5.6. :( It seems the data is sent in pieces causing multiple requests?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

孤独患者 2024-12-11 01:38:48

我认为您的 PHP 版本已升级。

自 PHP 5.2.12 起,max_file_uploads 配置设置充当
一次请求中可以上传的文件数量限制。你
需要确保您的表单不会尝试上传更多文件
在一次请求中超过此限制。

来源:http://php.net/manual/en/ features.file-upload.multiple.php

I think your PHP version was upgraded.

Since PHP 5.2.12, the max_file_uploads configuration setting acts as a
limit on the number of files that can be uploaded in one request. You
will need to ensure that your form does not try to upload more files
in one request than this limit.

Source: http://php.net/manual/en/features.file-upload.multiple.php

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文