Highlighted

Adobe air on iOS - FileReference Download Error

New Here ,
Oct 03, 2014

Copy link to clipboard

Copied

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!

TOPICS
Development

Views

240

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Adobe air on iOS - FileReference Download Error

New Here ,
Oct 03, 2014

Copy link to clipboard

Copied

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!

TOPICS
Development

Views

241

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 03, 2014 0
Explorer ,
Oct 05, 2014

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 05, 2014 0