How to apply drm function in Conflunece

Hi!

I have a question about confluence to apply drm solution when upload file or download file.
I developed drm plugin to confluence using drm solution, service linker(Korea local company).

When I upload file or download file to Confluence, it’s works. But When I upload file or download file using attatchments macro, it does not apply drm function.

Drm is applied in upload and download url. I found that when I do it with attachment macro, it’s upload and download url is almost same. So, I apply the url to developed plugin, it does not work.

In this case, is there any solution to it. Help me!