Download or open attached file error on web

We have a billboard web app. and data maintainers may attach some files in each
documents issued.
We create a web view for users downloading or opening files and the column of
attachments is coded with formula the url string directly like following…

“{]”+@Implode(“{”+@AttachmentNames+“]”;@NewLine)+“{]”

when the users click the attachment name and choose open or download option
through the web view, it pups up the error information as following…

Internet Explorer cannot download xxx(file name) from aaa.bbb.com.tw
Internet Explorer cannot open this website. Maybe the website requested cannot
be used or not found. Please try it later.

But if I open a new IE window and paste the url string of the attachment
directly on the web site line, it can be opened successfully.

Any advice would be appreciated.

Subject: download or open attached file error on web

You’re missing part of the URL to the attachment. Alter the formula to this:

“[” + “<span class="fn9bk">”+@Implode(“<a
href="/”+@WebDbName+“/0/”+@Text(@DocumentUniqueID)+“/$File/”+@AttachmentNames+“"
target=break;>”+@AttachmentNames+“”;@NewLine)+“]”

You can combine the “[” and the “<span …” part; I’ve separated them to make it possible to cut and paste. The browser doesn’t have to play nice with single quotes, so I’ve replaced them with escaped double quotes. Most important, though, is that a view component has been added to the attachment URL – documents lie one directory level lower than design elements, and Domino treats the view as a directory.

Subject: RE: download or open attached file error on web

Sorry, I mistype the formula. All the “{” should be “[”.
The correct as following

“span class=‘fn9bk’>]”+@Implode(“a
href='/”+@WebDbName+“/”+@Text(@DocumentUniqueID)+“/$File/”+@AttachmentNames+“’
target=break;>”+@AttachmentNames+“]”;@NewLine)+“/span>]”

By the way, I mean I right clicked the link of the attached file on the web
view and chose the content and copied the url string.
Then I opened a new IE window and pasted the url on the url line.
It showed the file content successfully.

Subject: RE: download or open attached file error on web

No, that URL would not have worked – the view part is missing.