Fix: iOS shows some files instead of downloading it

This commit is contained in:
Christoph Wiechert
2017-11-21 13:25:01 +01:00
parent 0c04bbf082
commit 4c42bc23ec

View File

@@ -117,7 +117,10 @@
alert('One-Time Download: File is not available anymore.');
return;
}
document.location.href = file.url;
const aEl = document.createElement('a');
aEl.setAttribute('href', file.url);
aEl.setAttribute('download', file.metadata.name);
aEl.click();
file.downloaded = true;
},