Closed (works as designed)
Project:
DrupalGap
Version:
7.x-1.17
Component:
Mobile Application Development Kit Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Jun 2018 at 05:06 UTC
Updated:
12 Sep 2018 at 11:58 UTC
Jump to comment: Most recent
Comments
Comment #2
shahidbscs commentedFor now found a simple solution
<a href="image/file/path" data-ajax='false' download> Download image </a>1) used data-ajax='false' to avoid Drupalgap redirect
2) download is and html5 element attribute
Comment #3
tyler.frankenstein commentedThank you for sharing!
Comment #4
ntym commentedJust for reference
This will not work in PhoneGap compiled app.
In Android app I used link like:
<a onclick="window.open('file_url', '_system', 'location=yes')" class="ui-btn">Download</a>