Help with upload

From: Date: Fri, 04 Jul 2003 02:31:01 +0000
Subject: Help with upload
Groups: php.general 
Request: Send a blank email to php-general+get-153948@lists.php.net to get a copy of this message
I am trying to do a file upload using the following code. Script doesn't appear to generate any errors that I can see. Just that the file isn't copied. I have put in some debuging code and all variable seem to be correct. file just isn't copying. I have tried both copy() and move_uploaded_file() functions with the same result...file isn't copied. I must be overlooking the obvious and am hoping someone can point it out to me. Help would be appreciated. Note: I am using php v4.0.3pl (I don't have any option and this is the version that I am stuck with, so I just have to make it work). Thanks in advance. echo "upload=".$ufolder.$HTTP_POST_FILES['img1']['tmp_name']; if ($HTTP_POST_FILES['img1'] != "") { move_uploaded_file($HTTP_POST_FILES['img1']['tmp_name'], $ufolder.$HTTP_POST_FILES['img1']['name']); //copy($HTTP_POST_FILES['img1']['tmp_name'], "$ufolder".$HTTP_POST_FILES['img1']['name']); //or die($php_errormsg); //or die("Couldn't copy the file!"); echo "error=".$php_errormsg; } else { die("No input file specified"); } Thanks. Mark Roberts, Roberts Computing Systems Webmaster Services $29.50/mo mailto:mark.roberts@robertscomputing.com

« previous php.general (#153948) next »