class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
more info about the class
FILES: Array ( [my_field] => Array ( [name] => Array ( [0] => gremio 001.jpg [1] => gremio 002.jpg [2] => gremio 003.jpg [3] => gremio 004.jpg [4] => gremio 005.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg [3] => image/jpeg [4] => image/jpeg ) [tmp_name] => Array ( [0] => C:\WINDOWS\TEMP\phpE7.tmp [1] => C:\WINDOWS\TEMP\phpE8.tmp [2] => C:\WINDOWS\TEMP\phpE9.tmp [3] => C:\WINDOWS\TEMP\phpEA.tmp [4] => C:\WINDOWS\TEMP\phpEB.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 [3] => 0 [4] => 0 ) [size] => Array ( [0] => 1785455 [1] => 1940836 [2] => 1512101 [3] => 1499155 [4] => 1279225 ) ) )