Need to return file from a custom action

0
62
Role Image


Hi,

I currently face a weird request. I want to add a button to download files from an external REST API. For some specific reasons I must not calls the service from client side. So I’m trying to use an Plugin registered on a custom action and then call the custom action in JavaScript web resource. My question is how to return a binary from custom action? Did any one face the same need and can help me?

May be my approach isn’t the best. Any proposal will be welcome.



Source link

Leave a reply

Please enter your comment!
Please enter your name here