Trying to open an attachment with this url and it doesn't work. Any idea why?
Thanks for any ideas
The attachment was originally created on the web and was an embedded object. I then wrote code to move it to a Rich Text Field and that didn't help. The error I get is HTTP Web Server: Couldn't find design note
CodePudding user response:
This is from a note that I pulled together for HCL some time ago listing the issues we had with Domino 11 having upgraded from 9. This might help although it is not clear what version you are on.
Broken Download links for LZ1 compressed attachments. - CS0313452 After upgrading to FP5 customers found that they could not download some attachments. We were able to reproduce this issue 100% and provided HCL with a database. https://eon.focul.net/eon/apps/moc.nsf/xp_f_mod.xsp?action=openDocument&documentId=67BC79B86B06BAFD802582B30042ACFB FoCul determined that this happens to attachments that are automatically compressed with LZ1 even when the database settings do not enable compression.
SPR# GRHEBVYNW7 - Server - DAOS - Fixed an issue where after upgrading to 11.x, running dbmt -c on DAOS enabled databases results in duplicate DAOS objects being stored. This regression was introduced in 11.0.
The URL syntax affected is the old style https://<>//<>/<database.nsf>>/<>/$FILE/<>.jpg whereas the newer “XPage”style syntax works fine We modified our applications to use the XPages style syntax as a good work around.
This is the XPages url style
CodePudding user response:
Your use of /0/(Attach)/0 looks wrong. Try this format instead: http://host/Database/View/Document/$File/Filename?OpenElement (source: https://help.hcltechsw.com/dom_designer/9.0.1/appdev/H_ABOUT_URL_COMMANDS_FOR_OPENING_IMAGE_FILES_ATTACHMENTS_AND_OLE_OBJECTS.html)
So in your case: https://blah-apps.com/Development/StrongB.nsf/0/B3B9D4480BEF667C852588310078E1AE/$File/golf.pdf?OpenElement