Unable to open attachment in web

Dear all expert,

I encounter a problem where im not able to open attachment.

The error message is: HTTP 500 Internal Server Error

I have a formula as below:

DBpath := @ReplaceSubstring( “/” + @Subset( @DbName ; -1 ) ; " “:”\" ; “+”:“/” ) ;

@If(@Attachments = 0;

@Return(“N/A”);

“View attachments here:
” +

@NewLine +

@Implode(“<a href = "” +

@Text(@DocumentUniqueID) +

“/$file/” +

@AttachmentNames +

“">”+

“<img src ="”+DBpath+“/guestbook.gif">” +

@AttachmentNames +

“”; “

”))

Thank you.

Subject: A few things

  1. Show the resulting HTML from the Page. Look at the URL in the HREF SRC, does it work if pasted in?

  2. @AttachmentNames can contain more than one attachment name, so you need to specify which one you want. Unless you’re certain there will only be one attachment.

  3. Take a look at @WebDBName, will save you all that DBPath stuff you’re doing.

Secondly, do not cross post your questions. If you’re running on 8, post to the 8 forum, if you running 8.5 the 8.5 forum. No need to post the same question to multiple forums, where you will end up with some without answers and some with. You should go back to your multiple posts and post responses that link back to the other answers you receive.