Update function.handleUploads.php