Fix: iOS shows some files instead of downloading it
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user