Thanks for responding Sirdude! I installed the update to 7.3.1 but the code looks the same to me? So I tried to replace the code as you indicated, but no luck. Maybe my problem is different...

This is what my section of code now looks like...
Quote
$dbh -> do_placeholder_query($query,array($Number),__LINE__,__FILE__);

$file = rawurlencode($file);

header("Pragma: public"); // required
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private", false); // required for certain browsers
header("Location: {$config['ATTACHMENTS_URL']}/$file");




?>

I assume I was supposed to replace the whole If/Then section? I tried different variations, but no luck.

Actually I think it is a permissions issue, but I don't really understand what is going on. When I FTP to the Gallery Directory the files have an owner of www.data and the permissions are set so only the owner can read/write them (600 I think). The two pictures that are viewable have their permissions set correctly. I am guessing that the UBB software has nothing to do with setting the owner, or the permissions in this forum? Something I need to work with my ISP to get the permissions reset correctly?

Anyway, thanks again for your suggestions.
Mark