Image

Imagesoltice wrote in Imagephp

File Uploads

First of all...
	$maps_dir = "/www/documents/services/cst/graphics/maps/";
	  
	$title = $_POST["title"];
	$note = $_POST["note"];
	$more_link = $_POST["more_link"];

	if (move_uploaded_file(
            $_FILES['file']['tmp_name'], 
            $maps_dir . $_FILES['file']['name'])){

		  echo "The map has been added.";

	}else{
	          print_r($_FILES)
                  echo "A problem occurred.";
	}


I've messed with this for a few hours, changing the directories to move_uploaded_file(), making sure the PHP.ini file sends the file to the proper directory, and still nothing.

The odd part is that the error code in $_FILES is 0, but the move fails each time. And when I look for the file in the upload_tmp_dir after executing the script, nothing is there.

Any ideas?