Hi I have connected my Ionic 2+ app to Amazon S3. In my app when I want to download a file my backend delivers a unique pre-signed URL generated from my S3. Looks something like this:
Ok so further to above I sort of got it working for my iOS and android app by implementing cordova file transfer. However it does not work in a normal web browser as file transfer is mobile only. My code below.
However it opens the file in a new window. Is there anyway to actually give the user the option to save as? Also any work around to also work in a normal browser ie progressive web app?? Thanks in advance for any help on this.
Not on the frontend but instead I had my backend dev to setup aws s3 to download as an attachment by apply content-disposition=>content as part of the file’s meta data. This way when I click on the href link it automatically downloads.