Hi
I'm looking into if it would be possible to store attachments elsewhere than Azure or SharePoint. I would like that when a user clicks the paperclip and uploads an attachment from anywhere, we detect that this is happening and save the file to an external document management system. Ideally I would also like to catch any automatic creation of an attachment. I've tried searching, but I can't seem to find anyone that has a similar requirement.
I've been thinking about a few possible approaches:
- I understand that the attachments are managed through the DocuRef and DocuValue tables. Hooking into events here will at least give us the file details and will work even if the attachment was made by a user or otherwise, but it won't prevent the file upload to Azure. Edit: Forgot to mention that this option will not get me to the file itself without letting it upload and download it again.
- Customizing the DocumentUpload form, either by replacing the upload with another File Upload Control, or somehow manipulate what's happening here. But this won't help with attachments created by other systems.
- An automatic job that goes through all the attachments and moves them periodically
Either of these could be bad practice for all I know.
Are there anyone who has experience with this and can please point me in the right direction?
Thanks!