Hello and thanks in advance i was working on file upload and I needed to create a profile page with image upload and resume upload. Resume upload was not a big deal but in case of image I want user to upload a image and the uploaded image will be viewed on his profile as profile picture, so I wanted to know the fields in the table for a image (for ex like name, id, size, )
How do I retrieve the image on my php page?
This is what I have done to upload a resume and the code works fine but i dont have idea for images/picture:
$name=$_FILES["file"]["name"];
$size=$_FILES["file"]['size']/1024;
$temp=$_FILES["file"]["tmp_name"];
$path = "uploads/";
move_uploaded_file($_FILES["file"]["tmp_name"],"uploads/" . $_FILES["file"]["name"]);
echo "Upload: ". [$_FILES["file"]["name"] ;
echo '<br>';
echo "Type: " . $_FILES["file"]{"type"] ;
echo '<br>';
echo "Size: " . ($_FILES["file"]["size"] / 1024) . " kB";
echo '<br>';
echo "Stored in: " . "uploads/" . $_FILES["file"]["name"]. "";
echo '<br>';