jeudi 26 novembre 2015

Cannot interact with uploaded images from my website

When uploading images from my website into the designated folder I can see the file in the directory, but cannot open the files nor display them on the webpage.

                            $directory = "./profiles/".$user_id;

                            if (!is_dir("profiles/".$user_id))
                            {

                                mkdir("profiles/".$user_id, 0777);


                            }

                        $temp_name=$file["tmp_name"];
                        $new_count = $images + 1;
                        $file_name=$user_id."_".$new_count;
                        $full_file_name ="profiles/".$user_id."/".$file_name.".jpg";

                        move_uploaded_file($temp_name ,$full_file_name);




Aucun commentaire:

Enregistrer un commentaire