I keep getting this error when trying to configure the upload directory with Apache 2.2 and PHP 5.3 on CentOS.
In php.ini:
upload_tmp_dir = /var/www/ht
Change permissions for this folder
# chmod -R 0755 /var/www/html/mysite/images/