robert_gsfame Posted August 2, 2010 Share Posted August 2, 2010 I upload an image and put every information inside $_SESSION['tmp'] and $_SESSION['path'] then once user click on button then i use move_uploaded_file($_SESSION['tmp'],$_SESSION['path']) but file uploaded not appeared in my upload folder, and again i try to echo everything but all information still kept well in $_SESSION is there something missing here? thx Link to comment https://forums.phpfreaks.com/topic/209563-move_uploaded_file-not-moving-my-file-into-folder/ Share on other sites More sharing options...
AbraCadaver Posted August 2, 2010 Share Posted August 2, 2010 Maybe permissions? error_reporting(E_ALL); ini_set('display_errors', '1'); Link to comment https://forums.phpfreaks.com/topic/209563-move_uploaded_file-not-moving-my-file-into-folder/#findComment-1094180 Share on other sites More sharing options...
radar Posted August 2, 2010 Share Posted August 2, 2010 $newname = "../uploads/".$folder."/".$image_name; move_uploaded_file($_FILES["filefieldname"]["tmp_name"], $newname); without code we cant help you anywho -- when uploading a file, you cant use the session var you have to use the $_FILES variable for the first parameter at least... Link to comment https://forums.phpfreaks.com/topic/209563-move_uploaded_file-not-moving-my-file-into-folder/#findComment-1094183 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.