I am trying to debug a very strange problem with the $ _FILES array. When I try to upload a file, only "name" is set, type, tmp_name, etc. Empty, and it returns error number 1. For instance:
Array ( [name] => test.doc [type] => [tmp_name] => [error] => 1 [size] => 0 )
test.doc is a valid file, I can open it without any problems. This happens with a bunch of files that I tested; doc, pdf, xls, ppt, jpg. The only files that work are txt and gif.
I get this problem for both CentOS 5.3 w / PHP 5.2.6, Apache 2.2.3 and Ubuntu 8.04 w / PHP 5.2.4, Apache 2.2.8.
I thought that I might have been a mime type, but I checked the mime types, and all the usual ones are available.
Any ideas? I have never had this problem before!
Thanks.
source share