Updated server not sending/accepting multiple file uploads?
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 o开发者_Python百科ther, 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?
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
精彩评论