Isityou Posted February 28, 2008 Share Posted February 28, 2008 I'm trying to upload a file but it is not moving the file from the temp to the specified folder ('../images'). $target_path = '../images/'; if(is_uploaded_file($_FILES['imagefile']['tmp_name'])) { if(move_uploaded_file($_FILES['imagefile']['tmp_path'], $target_path)) { // Good, it uploaded } else { die ('<p class="error">FILE MOVE ERROR</p><br /><input type="button" value="Back" onclick="javascript:history.back()" />'); } } else { echo 'Error, must be uploaded via website.'; } Quote Link to comment Share on other sites More sharing options...
Lijoyx Posted February 29, 2008 Share Posted February 29, 2008 why don't u use copy function copy ($_FILES['fle_lijoy']['tmp_name'], "./galleryimgs/".$filename) ; Quote Link to comment Share on other sites More sharing options...
Isityou Posted February 29, 2008 Author Share Posted February 29, 2008 I tried, doesn't work. Quote Link to comment Share on other sites More sharing options...
Isityou Posted February 29, 2008 Author Share Posted February 29, 2008 Bump ^ Quote Link to comment 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.