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.'; } Link to comment https://forums.phpfreaks.com/topic/93585-uploading-files/ 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) ; Link to comment https://forums.phpfreaks.com/topic/93585-uploading-files/#findComment-479744 Share on other sites More sharing options...
Isityou Posted February 29, 2008 Author Share Posted February 29, 2008 I tried, doesn't work. Link to comment https://forums.phpfreaks.com/topic/93585-uploading-files/#findComment-480232 Share on other sites More sharing options...
Isityou Posted February 29, 2008 Author Share Posted February 29, 2008 Bump ^ Link to comment https://forums.phpfreaks.com/topic/93585-uploading-files/#findComment-480300 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.