Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49076

Download files from external API

$
0
0

@cromanwhq wrote:

Hello

Currently, i have a list with href items, these items download external files, for example

Item 1 -> Download file
Item 2 -> Download another file

<ion-view view-title="Documents" hide-back-button="false">

    <!--docs section-->
    <ion-content id="docs-content">

        <div class="documentos padding">
            <a href="https://servername.com/api/document/download/id/{{doc.id_document}}?__token=the_token&__idPortal=1" ng-repeat="doc in docs">
                <i class="fa fa-file"></i>
                <div class="filename">
                    <span class="title col-100">{{doc.name}}</span>
                    <div class="clear"></div>
                    <span class="col-50">{{doc.name}}</span>
                    <span class="col-50">{{doc.created}}</span>
                </div>
            </a>
        </div>

    </ion-content><!--end docs section-->
</ion-view>

On browser (using ionic serve) works fine, but on run android, on click not download file.

Any idea?

In advance thank you

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 49076

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>