1 Reply Latest reply on Aug 30, 2016 12:08 AM by devgeeks@adobe

    Downloading an image by clicking the link

    xkevin Level 1

      I am having problem with the download image on my app. How to download a certain image allowable in andriod, ios and windows phone?

      This is the following code I have:

       

      <div>
      <a href="https:sample.com/uploads/04-19-2016/1.jpg">
      <span class="attachment-wrap"><i class="fa fa-paperclip" aria-hidden="true"></i> ..1.jpg</span>
      </a>
      </div>
      <div>
      <a href="https:sample.com/uploads/04-19-2016/2.jpg">
      <span class="attachment-wrap"><i class="fa fa-paperclip" aria-hidden="true"></i> ..2.jpg</span>
      </a>
      </div>
      <div>
      <a href="https:sample.com/uploads/04-19-2016/3.jpg">
      <span class="attachment-wrap"><i class="fa fa-paperclip" aria-hidden="true"></i> ..3</span>
      </a>
      </div>
      

       

      If the link was clicked the image should be download. I have tried the HTML <a> download Attribute but it is not allowed on ios.

      I also tried reading this: cordova-plugin-file-transfer - Apache Cordova  but I didn't understand how it works(thinking not applicable on my situation)?

      Any help?