Image uploded but image broken<

if($f[imgurl])
$i[banner] = $f[imgurl];
elseif($_FILES['userfile']['tmp_name'])
{
// Lets try to save the uploaded banner
if(move_uploaded_file($_FILES['userfile']['tmp_name'], "banners/" . $_FILES['userfile']['name']))
{
$i[banner] = $DEFAULT[site_url]. "banners/" . $_FILES['userfile']['name'];
}
else
{
lib_redirect("Error uploading your banner", "index.php/ads", 5);
exit;
}
}



this statement is working somewhat. the file is getting uploaded and I have verififed that it is there but it is broken with the red 'x'. It is setting the permissions to 600, what am I doing wrong? can someone help me out

thanks
MikeYour permissions are wrong I think, 600 gives only the owner the ability to see it. Try giving read to group and others.I just tried it on my server and with chmod 600 images don't load in the browser. Try chmod 644.

edit, I may have read your post wrong, your saying the script is setting them to 600? What are the directory permissions the images are going to.
 
Back
Top