Solarpitch Posted October 25, 2007 Share Posted October 25, 2007 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); Link to comment https://forums.phpfreaks.com/topic/74794-solved-image-upload-query-image-not-uploading-to-server/ Share on other sites More sharing options...
MadTechie Posted October 26, 2007 Share Posted October 26, 2007 checked folder permission ? Link to comment https://forums.phpfreaks.com/topic/74794-solved-image-upload-query-image-not-uploading-to-server/#findComment-378322 Share on other sites More sharing options...
phpknight Posted October 26, 2007 Share Posted October 26, 2007 You might also want to check the errors field in the $_FILES array. That could give you more specifics. Link to comment https://forums.phpfreaks.com/topic/74794-solved-image-upload-query-image-not-uploading-to-server/#findComment-378583 Share on other sites More sharing options...
Solarpitch Posted October 27, 2007 Author Share Posted October 27, 2007 Cheers Guys, turned out to be a directory issue! Link to comment https://forums.phpfreaks.com/topic/74794-solved-image-upload-query-image-not-uploading-to-server/#findComment-379236 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.