Skip to main content
Santanu Karar
Known Participant
February 20, 2014
Question

Is there a way to download inside AIR HTML?

  • February 20, 2014
  • 1 reply
  • 561 views

Hi,

Is there any way to download files from the webpage running inside AIR HTML component? i.e. mail attachment etc.?

Thanks!

This topic has been closed for replies.

1 reply

User Unknow
Legend
February 20, 2014

You need inject JS code to loaded page that will override link clicks so URL will be not opened but instead sent to Air via ExternalCallback. Than using simple URLLoader try to load your files. This may help. But this is really hard to do this. This will require more than great experience

But let's talk about simpler way. Do you tried to simple open your page via stagewebview, login to your page and press "download"? This works prefectly

Santanu Karar
Known Participant
February 20, 2014

I'm already overriding loaded HTML page's links etc. but yes its true to determine which link is for download or to open just a web page.

StageWebView!! I was in impression for a long time, this made for mobile! After you saying so, at help.adobe.com I can see this also for all desktop operating systems too! Great!

Though our existing ol' HTML component is already coded/modified heavily through the application, I don't know how far we can replace them with new StageWebView.. but you simply given me an option. Thanks!

I'll see a simple demo how enable it is downloading files in an AIR application, shortly.

Santanu Karar
Known Participant
February 20, 2014

Well, I made a very basic StageWebView demo running in a desktop AIR, it opens up fantastically though not downloading anything either. I logged into my GMail account, tried with any attachment, but nothing gets downloads, or am I missing any procedure to make it work?