here's the code:
move_uploaded_file($_FILES['photo']['tmp_name'], 'uploads/' . $full_name . '.jpg');
$image = imagecreatefromstring(file_get_contents('uploads/' . $full_name . '.jpg'));
//...
user can upload a file (photo
) , there's no problem with uploading it
but the second line sometimes give's me this:
Notice: imagecreatefromstring(): gd-jpeg, libjpeg: recoverable error: Corrupt JPEG data: 1 extraneous bytes before marker 0xd9 in E:\xampp\htdocs... on line 20
it doesn't fail the process but it's a Notice anyway...
what's wrong?