Hello All -
I wrote a file upload script that uses the move_uploaded_file() function. It was working fine until a user reported that they were getting file upload errors. The code had not been touched during the time when the problem began to happen (sometime between 5/28 and 6/12).
I saw an old thread (sometime in '04) that said that PHP had to run as a CGI in order to use this function. But that doesn’t make sense to me since I did not alter the server configuration between the dates above. (My domain is not running as a CGI. It is not running as a CGI because I learned that I couldn’t use .htaccess directives in CGI mode.)
I also wondered if mod_security is causing a problem, but I suspect not due to other CMSes that are working fine with “Extra Web Security” (mod_security) turned on.
I have checked to be sure that the uploaded file in the server’s temp directory is there and is_file returns true.
I have also verified that my destination directory has 777 permissions.