Skip to main content
October 3, 2014
Question

Adobe air on iOS - FileReference Download Error

  • October 3, 2014
  • 1 reply
  • 331 views

I guys,

when I use the Download method of the FileReference class, everything works fine on Desktop and Android, but I get an error on iOS.

This is the code:

var req = new URLRequest(url); 
var localRef:FileReference = new FileReference();
localRef
.download(req);

On iOS I'm getting an Alert:

Download Error
File downloads not supported.

I already tried to NavigateToUrl() and it asks save the file in Dropbox or another App.

How can I fix this error?

Thanks!

This topic has been closed for replies.

1 reply

Inspiring
October 6, 2014

What are you intending to do with the downloaded file? Will it be used solely by the app, or you attempting to download some othe media (photo, video, music, etc.) to be referenced outside the app.

If you want to do the former I think I can help...

The later, I am not sure how to, or if you can, do.