Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

view image attachment problems

Quote Reply
view image attachment problems
Hello again. :-)

Well, it seems that all my users are having a problem viewing image attachments (in this case a JPG file) from the Forum boards. They log in successfully and can view all boards and messages, yet when they click on an attachment link to view the file they continually get the following error message:

Quote:


HOME: Permission denied

OOPS! You are not authorised to view this page


Any ideas what might be causing this?

Thanks!

Last edited by:

rtuttle: Jan 6, 2002, 10:02 AM
Quote Reply
Re: [rtuttle] view image attachment problems In reply to
Try this thread:

http://www.gossamer-threads.com/...orum.cgi?post=169791

Might not be the same problem though.
Quote Reply
Re: [heavybombers] view image attachment problems In reply to
Thanks but, if I am reading the other material correctly, this does not apply to me as my server is all Apache based.

RICHARD
Quote Reply
Re: [rtuttle] view image attachment problems In reply to
Could it be as simple as the images directory you're using not having the correct permissions set?
Quote Reply
Re: [heavybombers] view image attachment problems In reply to
Already checked that one. Actually, I got it to work in the Netscape browser but it's still giving the same error in IE. Unsure
Quote Reply
Re: [rtuttle] view image attachment problems In reply to
UPDATE:

I can view the image attachment as Administrator, but when I set myself up as a Registered User it gives me that error message. Now I have looked all over the Admin Panel for a solution (under Users, under Setup/Attachments, etc.) but I am unable to find any.

Anyone have ideas?

THANKS!
Quote Reply
Re: [rtuttle] view image attachment problems In reply to
ONE LAST UPDATE:

I may have figured out the problem. The board that was causing this error message was a "read posts only" board for Registered Users -- they could not post or reply. Only Administrators could post message and attachements.

However, when a Registered user would go there and successfully read the post they could not read the attachment. I have "fixed" the problem by giving everyone Read/Write access to this board.

HOWEVER, this is not what I would like for this board.

Is there a way to change it so a board can be "read access" only to Registered users and this read access to include attachments as well?
Quote Reply
Re: [rtuttle] view image attachment problems In reply to
Hi, I tracked down the problem to an incorrect setting in the config file.

To fix it, you need to edit admin/GForum/Config/Data.pm and search for 'post_attachment' (with the 'single quotes'). It has a value of '4', but the value should be '3'. 4 means the user has to have reply access - 3 means the user needs post view access.

Alternatively, you can wait until tomorrow or Tuesday when we will release 1.1.1, which will fix your installation. Numerous other bugs are also fixed.


Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com

Last edited by:

jagerman: Jan 7, 2002, 10:11 AM
Quote Reply
Re: [jagerman] view image attachment problems In reply to
I did try looking for what you suggested in that file, however I could find no such reference. The references I could find to 'post_attachment' were the following:

Quote:
$self->set('post_attachment_max_size' => 307_200, $overwrite);
$self->set('post_attachments_max_count' => 0, $overwrite);
$self->set('post_attachments_max_size' => 209_715_200, $overwrite);

Quote Reply
Re: [rtuttle] view image attachment problems In reply to
Whoops, I'm sorry - I gave you the wrong file. You should edit GForum/Config/Data.pm instead, not GForum/Config.pm.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com