Jump to content

[SOLVED] Image upload Query - Image not uploading to server?


Solarpitch

Recommended Posts

Hey Guys,

 

I have the below file upload script which seems to add the path to the database fine but it wont put the file onto the server and I cant see whats wrong. Could you please have a look...

 


$imagedir = "property_images/";

$timest = time();

	echo $image1 = $_FILES['image1']['tmp_name'];

	if($image1 != ""){
			$image1exists = true; 
			$includesimage = '1';
		}




                        if($image1exists){$image1file = $imagedir.$timest."AA".basename($_FILES['image1']['name']);}


		if($image1exists){$image1 = $imagedir.$timest."AA".basename($_FILES['image1']['name']);}


		if($image1exists){$image1a = $imagedir."THUMB".$timest."AA".basename($_FILES['image1']['name']);}


                        move_uploaded_file($_FILES['image1']['tmp_name'], $image1file);




Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.