After the sudden leaving of a colleague I had to overtake his big yii-Project and found out that
the CMultiFileUpload he used to upload multiple files did not work correctly. No Error messages, but every time only the first file is passed to $_FILES no matter how many files I uploaded.
I copied the multifileupload codes to a simple test-project and it worked correctly. Two files are in $_FILES when I upload two files. That’s really strange!
I’ve googled about the problem, but could not find any answer or solution.
Did you compare the source code of both scripts in your browser? With special focus on the form and the input field. Also do both scripts make use of the same javascript files?
I should perpaps have said html code, not source code. Does the html code in the browser look the same? And does the browser show it loads the same javascript files in both cases?
Oh, and when you are testing in different environments check the PHP setting max_file_uploads.
Also test with small files to upload, so that you do not hit PHP limits like post_max_size and upload_max_filesize.