Commit 1488c460 by Matteo

Sistemata directory download

parent 5a6619da
...@@ -232,7 +232,9 @@ export class UtilService { ...@@ -232,7 +232,9 @@ export class UtilService {
async saveFile(fileInfo: Pair, index) async saveFile(fileInfo: Pair, index)
{ {
var path = this.file.externalDataDirectory; var path = "";
if(this.platform.is("ios")) path = this.file.tempDirectory;
else path = this.file.externalDataDirectory;
var nomeFile : string = fileInfo.key; var nomeFile : string = fileInfo.key;
nomeFile = nomeFile.replace(/\//g, "-"); nomeFile = nomeFile.replace(/\//g, "-");
await this.download(fileInfo.value) await this.download(fileInfo.value)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment