Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Worksite Web - Intercepting downloads
Josh123
Hi all,
I need to find a way to intercept a download request in worksite web (worksite 8.2), in order to modify the file (on-the-fly), and proceed to stream it to the downloader.
Specifically, this is to stamp a dynamically generated watermark to confidential PDF documents downloaded from worksite web, with the intention that this process is completely transparent to the user.
Currently, I'm looking at modifying the download_ex() functions in common.js, to redirect the request to a purpose-built .aspx page to acheive this, but I thought I'd ask if there were a better way of doing this?
Cheers
Find more posts tagged with
Comments
Migrateduser
Josh,
You can do couple of things
1) Write a HTTModule and intercept all requests (check for viewdoc httphandler request)
2) replace the worksite httphandler ( imanage.worksite.web.UI.viewdoc) withy our custom handler - You will need to modify web.config with your custom handler
Thanks
Sheetal
Worksite consultant
www.docstree.com
sheetal@docstree.com
com.tools.generator.zip