ccrevcypsys Posted January 17, 2008 Share Posted January 17, 2008 This code isnt working to upload my image. Can someone possibally tell me whats wrong? $date_str=date('Ymdhis'); $uploadFileName = str_replace(array(" ","%20"),"_",$_FILES['image']['name']); if (is_uploaded_file($_FILES['image']['tmp_name'])) { $savefile = "../images/uploads/".$date_str."_".$uploadFileName; if (move_uploaded_file($_FILES['image']['tmp_name'], $savefile)) { @chmod($savefile, 0644); $record = $date_str."_".$uploadFileName; } } Link to comment https://forums.phpfreaks.com/topic/86548-solved-problem-with-image-upload-and-record/ Share on other sites More sharing options...
priti Posted January 18, 2008 Share Posted January 18, 2008 Hi, will be explaing how you are creating your $uploadFileName??? and please let us know the error you are facing? thanks Link to comment https://forums.phpfreaks.com/topic/86548-solved-problem-with-image-upload-and-record/#findComment-442655 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.