Look at the file plugin for an example of how to do that.
The problem is that the file is generated upon request, it's not available through the file system. And the generation takes several seconds to complete (the file is provided by a REST webservice). So I first load a normal page with a "busy indicator" and an hidden iframe, targeting the download URL. My goal is to integrate the iframe URL in the plugin.
Ok thanks, I solved it.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.