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); Quote 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 ? Quote 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. Quote 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! Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.