Attachments in V9

We want to create an Admin Form that will enable users to view the contents of any attachments linked to any folder. I have read through the Designer Guide for v9 but cannot work out how to open/save an attachment that is not directly linked to a folder.

 

Any help appreciated?

 

Thanks

Tagged:

Comments

  • You can always retrive file directly from eAttachment table via some simple aspx file.

    By the way, eAttachment table is one of the worst table in MBPM :(

  • Thanks Greg - sounds more complex than I thought. We have not done any bespoke aspx - as yet!

     

    Are there any examples available?

  • If you look at what's actually happening when you get an attachment in Fiddler, you'll see that the browser is simply calling a handler to get that file. Provided that your end user is privy to the folder (thus any attachments bound to that folder) and you know the folder id and file name (can be gotten from eAttachment table), you should be able to manually build URLs that, when clicked, will open those attachments, ie...

     

    /Metastorm/ReadAttachment.ashx?AttachmentFile=[FILE_NAME]&AttachmentOwner=[FOLDER_ID]&AttachmentType=Folder

     

    You must be logged in and already have access to the folder/attachment. There's no way to get around that unless you go directly to the database and read byte arrays directly.